
:root {
    /* PaleGreen (#98FB98) derived palette — same hue (120°), varying lightness */
    --pg:        #98FB98;   /* PaleGreen — main accent                          */
    --pg-tint:   #c8fdc8;   /* lighter tint for borders / soft fills            */
    --pg-xlight: #f0fff0;   /* Honeydew — page background base                  */
    --pg-mid:    #52c852;   /* medium green — button base, panel top            */
    --pg-dark:   #3a9b3a;   /* dark green — icon color, link color              */
    --pg-xdark:  #1e6b1e;   /* very dark green — panel gradient bottom          */

    --white:     #ffffff;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-400:  #9ca3af;
    --gray-500:  #6b7280;
    --gray-700:  #374151;
    --gray-900:  #111827;

    --border-radius: 18px;
    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.13);
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Very soft PaleGreen wash across the page */
    background: linear-gradient(145deg, var(--pg-xlight) 0%, #e2fde2 55%, var(--pg-tint) 100%);
    position: relative;
    overflow: hidden;
    color: var(--gray-900);
}

/* Decorative background blobs — PaleGreen family */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(152, 251, 152, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -130px;
    left: -130px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 200, 82, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Container ── */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* ── Card (split layout) ── */
.login-card {
    display: flex;
    flex-direction: row;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    width: 100%;
    max-width: 900px;
    min-height: 580px;
}

/* ── Left panel (branding) ── */
.card-header {
    /* Gradient: PaleGreen family — mid → xdark so white text stays readable */
    background: linear-gradient(160deg, var(--pg-mid) 0%, var(--pg-dark) 50%, var(--pg-xdark) 100%);
    padding: 50px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42%;
    min-width: 260px;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative circles inside left panel */
.card-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 130px;
    background-color: var(--white);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
}

.logo-img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.login-title {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.25rem;
    line-height: 1.45;
}

.login-subtitle {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.55;
}

/* Decorative dots at bottom of left panel */
.card-header .dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 1;
}

.card-header .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

.card-header .dots span.active {
    background: rgba(255, 255, 255, 0.85);
    width: 18px;
    border-radius: 3px;
}

/* ── Right panel (form) ── */
.card-body {
    flex: 1;
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
}

.form-section-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.form-section-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

/* ── Form controls ── */
.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1.5px solid var(--gray-200);
    font-size: 0.93rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.form-control:focus {
    border-color: var(--pg);
    box-shadow: 0 0 0 3px rgba(152, 251, 152, 0.32);
    background-color: var(--white);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    color: var(--pg-dark);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.icon-input {
    padding-left: 44px !important;
}

/* ── Submit button ── */
.btn-success {
    background: linear-gradient(135deg, var(--pg-mid) 0%, var(--pg-xdark) 100%);
    border: none;
    border-radius: 10px;
    padding: 13px 15px;
    font-weight: 600;
    font-size: 0.97rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    color: var(--white);
    box-shadow: 0 4px 18px rgba(58, 155, 58, 0.36);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--pg-dark) 0%, var(--pg-xdark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(58, 155, 58, 0.48);
    color: var(--white);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(58, 155, 58, 0.28);
}

/* ── Links ── */
.forgot-password {
    color: var(--pg-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--pg-mid);
    text-decoration: underline;
}

.create-account {
    color: var(--pg-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.create-account:hover {
    color: var(--pg-mid);
    text-decoration: underline;
}

/* ── Alerts ── */
.alert {
    border-radius: 10px;
    padding: 12px 15px;
    margin-top: 14px;
    font-weight: 500;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.07);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #dc3545;
}

.alert-success {
    background-color: rgba(152, 251, 152, 0.18);
    border: 1px solid rgba(82, 200, 82, 0.35);
    color: var(--pg-xdark);
}

/* ── Footer ── */
.footer-text {
    font-size: 0.77rem;
    color: var(--gray-400);
    margin-top: 28px;
    text-align: center;
}

.footer-link {
    color: var(--pg-dark);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--pg-xdark);
    text-decoration: underline;
}

/* ── Divider ── */
.form-divider {
    display: flex;
    align-items: center;
    margin: 22px 0 6px;
    color: var(--gray-400);
    font-size: 0.78rem;
}

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

.form-divider span {
    padding: 0 12px;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .login-card {
        flex-direction: column;
        max-width: 440px;
        min-height: unset;
    }

    .card-header {
        width: 100%;
        min-width: unset;
        padding: 32px 24px;
    }

    .logo-container {
        width: 95px;
        height: 95px;
    }

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

    .card-body {
        padding: 32px 28px;
    }

    .form-section-title {
        font-size: 1.3rem;
    }
}
