﻿

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-deep: #4A6B1F;
    --green-mid: #5C7A2E;
    --green-light: #D5E0C0;
    --green-pale: #F8FBF3;
    --gold: #F5C518;
    --orange: #E8860A;
    --bordeaux: #6B1A1A;
    --white: #ffffff;
    --text-dark: #2E3A1F;
    --text-mid: #7A8A6A;
    --text-light: #9AA88A;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 24px 60px rgba(74,107,31,0.18), 0 4px 16px rgba(0,0,0,0.08);
    --green-deep: #3d5a18;
    --green-mid: #4A6B1F;
    --green-soft: #5C7A2E;
    --green-light: #c8dba0;
    --green-pale: #f0f6e8;
    --gold: #F5C518;
    --orange: #E8860A;
    --bordeaux: #6B1A1A;
    --sidebar-bg: #2b4010;
    --sidebar-w: 260px;
    --sidebar-w-sm: 68px;
    --white: #ffffff;
    --text-dark: #1e2d0d;
    --text-mid: #5a6e48;
    --text-light: #8fa47a;
    --bg: #eef3e6;
    --card-bg: #ffffff;
    --border: #d4e3b8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(61,90,24,0.08);
    --shadow-md: 0 8px 32px rgba(61,90,24,0.13);
    --header-h: 62px;
    --transition: 0.25s ease;
}

html, body {
    min-height: 100vh;
    font-family: 'Lato', sans-serif;
    background: #e8edd8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

    /* animated background blobs */
    body::before, body::after {
        content: '';
        position: fixed;
        border-radius: 50%;
        opacity: 0.25;
        animation: float 8s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

    body::before {
        width: 500px;
        height: 500px;
        background: var(--green-deep);
        top: -150px;
        left: -150px;
        animation-delay: 0s;
    }

    body::after {
        width: 400px;
        height: 400px;
        background: var(--gold);
        bottom: -120px;
        right: -120px;
        animation-delay: -4s;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

/* ── Card container ───────────────────────────────────────── */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    min-height: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
}

/* ── Left panel ───────────────────────────────────────────── */
.panel-left {
    width: 42%;
    background: var(--green-deep);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    overflow: hidden;
    flex-shrink: 0;
}

    .panel-left::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(to right, var(--bordeaux), #8B2020);
    }

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.13;
}

.deco-1 {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -80px;
    background: var(--gold);
}

.deco-2 {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -60px;
    background: var(--gold);
}

.deco-3 {
    width: 90px;
    height: 90px;
    bottom: 100px;
    right: 24px;
    background: #fff;
}

/* flame SVG */
.brand-icon {
    margin: 0 auto 1.5rem;
    display: block;
    width: 56px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 4px;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.brand-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, var(--orange), var(--gold));
    margin: 1.5rem auto;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.brand-tagline {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.8;
    max-width: 190px;
    position: relative;
    z-index: 1;
}

/* ── Right panel ──────────────────────────────────────────── */
.panel-right {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.8rem;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 300;
    margin-bottom: 2.2rem;
}

/* form */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

    .input-wrap svg {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        stroke: #8BA870;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

.form-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid var(--green-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background: var(--green-pale);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

    .form-input::placeholder {
        color: #B8CBA0;
    }

    .form-input:focus {
        border-color: var(--green-mid);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(92,122,46,0.12);
    }

/* password toggle */
.toggle-pw {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
}

    .toggle-pw svg {
        position: static;
        transform: none;
        stroke: #8BA870;
    }

    .toggle-pw:hover svg {
        stroke: var(--green-mid);
    }

.forgot {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #8B6A1A;
    margin-top: -0.6rem;
    margin-bottom: 1.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot:hover {
        color: var(--green-mid);
    }

/* submit button */
.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--green-deep);
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-submit:hover {
        background: #3A5510;
    }

    .btn-submit:active {
        transform: scale(0.98);
    }

    .btn-submit svg {
        width: 16px;
        height: 16px;
        stroke: #fff;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

/* accent bar below button */
.accent-bar {
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(to right, var(--orange), var(--gold));
    margin-bottom: 1.8rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #C0CEB0;
    margin-bottom: 1rem;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--green-light);
    }

.footer-text {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-light);
}

    .footer-text a {
        color: var(--green-mid);
        text-decoration: none;
        font-weight: 700;
    }

        .footer-text a:hover {
            text-decoration: underline;
        }

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet: stack card vertically, shrink left panel */
@media (max-width: 720px) {
    body {
        padding: 1rem;
        align-items: flex-start;
    }

    .card {
        flex-direction: column;
        max-width: 480px;
        margin: 0 auto;
        min-height: unset;
    }

    .panel-left {
        width: 100%;
        padding: 2.5rem 2rem;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

        .panel-left::after {
            height: 4px;
        }

    .brand-icon {
        margin: 0;
        width: 44px;
        flex-shrink: 0;
    }

    .brand-info {
        text-align: left;
        position: relative;
        z-index: 1;
    }

    .brand-name {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .brand-sub {
        text-align: left;
    }

    .brand-divider, .brand-tagline {
        display: none;
    }

    .deco-1 {
        width: 180px;
        height: 180px;
        top: -60px;
        right: -60px;
    }

    .deco-2 {
        display: none;
    }

    .panel-right {
        padding: 2rem 1.8rem 2.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        padding: 0;
        background: var(--white);
        align-items: stretch;
    }

    .card {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .panel-left {
        padding: 1.6rem 1.4rem;
        gap: 1rem;
    }

    .brand-icon {
        width: 36px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .panel-right {
        padding: 1.8rem 1.4rem 2.5rem;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .login-subtitle {
        margin-bottom: 1.6rem;
    }
}




/* toast */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--green-deep);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

.toast-icon {
    width: auto;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .toast-icon svg {
        width: auto;
        height: 11px;
        stroke: var(--text-dark);
        fill: none;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
    }