*::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.login-page {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #f0ede6;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Navbar ---- */
.ln-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #f0ede6;
    border-bottom: 1px solid #e0dbd2;
}

.ln-navbar .nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.2s;
}

.ln-navbar .nav-back svg {
    width: 16px;
    height: 16px;
}

.ln-navbar .nav-back:hover {
    color: #1a4731;
}

.ln-navbar .nav-daftar {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a6640;
    text-decoration: none;
    transition: color 0.2s;
}

.ln-navbar .nav-daftar svg {
    width: 14px;
    height: 14px;
}

.ln-navbar .nav-daftar:hover {
    color: #1a4731;
    text-decoration: underline;
}

/* ---- Main Container ---- */
.ln-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 44px 24px 60px;
    flex: 1;
}

/* ---- Header ---- */
.ln-header {
    margin-bottom: 36px;
}

.ln-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a28;
    line-height: 1.2;
    margin-bottom: 8px;
}

.ln-header p {
    font-size: 0.95rem;
    color: #6b6b6b;
}

/* ---- Form ---- */
.ln-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Form Group ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ---- Input Wrapper ---- */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
}

.input-wrapper .input-icon-right {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.input-wrapper .input-icon-right:hover {
    color: #1a4731;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 0.95rem;
    color: #1a1a1a;
    background-color: #f8f6f1;
    border: 1.5px solid #ddd8cf;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.input-wrapper input.has-icon-right {
    padding-right: 44px;
}

.input-wrapper input::placeholder {
    color: #b0a89a;
}

.input-wrapper input:focus {
    border-color: #1a6640;
    box-shadow: 0 0 0 3px rgba(26, 102, 64, 0.12);
    background-color: #fff;
}

/* ---- Options Row ---- */
.ln-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.ln-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #4a4a4a;
    cursor: pointer;
    user-select: none;
}

.ln-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a6640;
    cursor: pointer;
    flex-shrink: 0;
}

.ln-forgot {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a6640;
    text-decoration: none;
    transition: color 0.2s;
}

.ln-forgot:hover {
    color: #1a4731;
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.btn-masuk {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #1a4731;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-masuk:hover  { background-color: #143824; }
.btn-masuk:active { transform: scale(0.99); }

/* ---- Divider ---- */
.ln-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #b0a89a;
}

.ln-divider::before,
.ln-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd8cf;
}

/* ---- Social Buttons ---- */
.ln-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    background-color: #fff;
    border: 1.5px solid #ddd8cf;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-social:hover {
    background-color: #f8f6f1;
    border-color: #b0a89a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.btn-social svg,
.btn-social img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---- Footer Link ---- */
.ln-footer-link {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
    color: #6b6b6b;
}

.ln-footer-link a {
    font-weight: 700;
    color: #1a6640;
    text-decoration: none;
    transition: color 0.2s;
}

.ln-footer-link a:hover {
    color: #1a4731;
    text-decoration: underline;
}

/* ---- Error ---- */
.form-error {
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: -4px;
}

/* ---- Help FAB ---- */
.help-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background-color 0.2s;
    z-index: 100;
}

.help-fab:hover { background-color: #1a4731; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .ln-container { padding: 32px 20px 48px; }
    .ln-header h1 { font-size: 1.7rem; }
}
