/* ═══════════════════════════════════════════════════════════
   AUTHENTICATION PAGES - Login, Register, Change Password
   ═══════════════════════════════════════════════════════════ */

/* ── Main Auth Layout ── */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: var(--font-sans);
}

/* ── LEFT PANEL (Hero/Branding) ── */
.auth-left {
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(45, 122, 34, .12);
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(45, 122, 34, .08);
}

.auth-left__inner {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.auth-left__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--green-light);
    display: block;
    margin-bottom: 20px;
}

.auth-left__title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 20px;
}

.auth-left__title em {
    font-style: italic;
    color: var(--green-light);
}

.auth-left__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .45);
    font-weight: 300;
    margin-bottom: 48px;
    line-height: 1.6;
}

.auth-left__stats {
    display: flex;
    gap: 40px;
}

.auth-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-stat strong {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}

.auth-stat span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
}

/* ── RIGHT PANEL (Form) ── */
.auth-right {
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.auth-box {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-soft);
}

.auth-box__head {
    margin-bottom: 32px;
}

.auth-box__head h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.auth-box__head p {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

/* ── FORM ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Alert (Errors) ── */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--red);
}

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Form Field ── */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .02em;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: var(--transition);
}

.auth-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 122, 34, .1);
}

.auth-field input::placeholder {
    color: var(--muted);
}

.auth-field__err {
    font-size: 12px;
    color: var(--red);
    font-weight: 500;
}

.auth-field__hint {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin-top: -3px;
}

/* ── Password Field with Toggle ── */
.auth-field__pw {
    position: relative;
}

.auth-field__pw input {
    padding-right: 44px;
}

.auth-field__eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.auth-field__eye:hover {
    color: var(--ink);
}

/* ── Remember Me / Forgot Password Row ── */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mid);
    cursor: pointer;
    user-select: none;
}

.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    accent-color: var(--green);
    cursor: pointer;
}

.auth-forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

.auth-forgot:hover {
    color: var(--green-medium);
}

/* ── Submit Button ── */
.auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.auth-submit:hover {
    background: var(--green-medium);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 122, 34, .28);
}

/* ── Cancel Button (for Change Password) ── */
.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.auth-cancel {
    text-align: center;
    padding: 12px;
    color: var(--mid);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-cancel:hover {
    color: var(--ink);
}

/* ── Switch Link (Don't have account?) ── */
.auth-switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 400;
}

.auth-switch a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.auth-switch a:hover {
    color: var(--green-medium);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 32px 20px;
    }

    .auth-box {
        padding: 32px 28px;
    }
}


.auth-alert.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
    background: #fff;
}

    .google-btn:hover {
        background: #f5f5f5;
    }