/* ============================================
   login.css — LadangGo Login Page
   ============================================ */

:root {
    --green-dark:  #1A3726;
    --green-mid:   #147B28;
    --cream:       #F0EBC0;
    --gold:        #FAB825;
    --font-display: 'Playfair Display', serif;
    --font-body:    'DM Sans', sans-serif;
}

/* ---- Page enter animation ---- */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideInRight {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Wrapper ---- */
.auth-wrapper {
    display: flex;
    height: calc(100vh - 64px);   /* full viewport, no scroll on wrapper */
    width: 100%;
    overflow: hidden;
}

/* ---- Decorative Panel (left) — 50% ---- */
.auth-panel {
    display: none;
    width: 50%;
    flex-shrink: 0;
    background: var(--green-dark);
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .auth-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeSlideIn .5s cubic-bezier(.22,.68,0,1.2) both;
    }
}

.auth-panel__inner {
    position: relative;
    z-index: 2;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
}

.auth-panel__title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeSlideIn .6s .08s cubic-bezier(.22,.68,0,1.2) both;
}

.auth-panel__sub {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 1rem;
    opacity: .85;
    line-height: 1.6;
    animation: fadeSlideIn .6s .18s cubic-bezier(.22,.68,0,1.2) both;
}

.auth-panel__deco {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(250,184,37,.18);
    position: absolute;
    bottom: -80px;
    right: -100px;
    z-index: 1;
}

.auth-panel::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--green-mid);
    opacity: .2;
    top: -130px;
    left: -110px;
}

/* ---- Card (right) — 50% ---- */
.auth-card {
    width: 50%;
    flex-shrink: 0;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
    animation: fadeSlideInRight .5s cubic-bezier(.22,.68,0,1.2) both;
}

/* On mobile: card fills full width */
@media (max-width: 899px) {
    .auth-panel { display: none; }
    .auth-card   { width: 100%; }
}

/* Inner content max-width so form doesn't stretch too wide */
.auth-card__inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Card header */
.auth-card__header { margin-bottom: 2rem; }

.auth-card__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: .4rem;
}

.auth-card__sub {
    font-family: var(--font-body);
    font-size: .9rem;
    color: #555;
}

.auth-card__link {
    color: var(--green-mid);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.auth-card__link:hover { border-color: var(--green-mid); }

/* Alert */
.auth-alert {
    background: #fff3cd;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .875rem;
    color: #7a5c00;
    font-family: var(--font-body);
}

/* ---- Form ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.auth-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .82rem;
    color: var(--green-dark);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-input {
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--green-dark);
    background: #fff;
    border: 2px solid #d5d0b0;
    border-radius: 10px;
    padding: .75rem 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.auth-input:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(20,123,40,.12);
}
.auth-input--error { border-color: #e05; }

.auth-field__error {
    font-size: .8rem;
    color: #e05;
    font-family: var(--font-body);
}

/* Remember / forgot row */
.auth-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .875rem;
    font-family: var(--font-body);
    color: #555;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
}
.auth-remember input[type="checkbox"] {
    accent-color: var(--green-mid);
    width: 15px; height: 15px;
}

.auth-forgot {
    color: var(--green-mid);
    text-decoration: none;
    font-weight: 500;
}
.auth-forgot:hover { text-decoration: underline; }

/* Submit button */
.auth-btn {
    width: 100%;
    background: var(--green-mid);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .03em;
    border: none;
    border-radius: 10px;
    padding: .85rem;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-top: .5rem;
}
.auth-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,55,38,.25);
}
.auth-btn:active { transform: translateY(0); }