/* ============================================================
   LOGIN PAGE — Mandarine Rose
   ============================================================ */

.login-page {
    min-height: 100vh;
    background: #eef2f6;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

/* ---- Hero (left) ---- */

.login-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(47, 143, 131, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(37, 110, 101, 0.4) 0%, transparent 40%),
        linear-gradient(145deg, #1a1f24 0%, #1f282f 38%, #256e65 100%);
    color: #fff;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.login-hero-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    animation: loginFadeUp 0.7s ease both;
}

.login-brand-mark {
    width: 120px;
    height: 120px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
}

.login-brand-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 16px;
}

.login-brand-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #dff7f5;
}

.login-hero-content h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.login-hero-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 36px;
}

.login-hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.login-hero-features i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #b8ebe4;
    font-size: 0.9rem;
}

/* ---- Form panel (right) ---- */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background:
        radial-gradient(circle at top right, rgba(47, 143, 131, 0.08) 0%, transparent 55%),
        #f4f7fa;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    border: 1px solid #e6ebef;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    animation: loginFadeUp 0.7s ease 0.12s both;
}

.login-card-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-card-logo {
    width: min(180px, 72vw);
    height: auto;
    max-height: 96px;
    object-fit: contain;
}

.login-card-header {
    margin-bottom: 28px;
    text-align: center;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f7f5;
    color: #256e65;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.login-card-header .login-badge,
.login-card-header h2,
.login-card-header p {
    margin-left: auto;
    margin-right: auto;
}

.login-card-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1f24;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-card-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.45;
}

.login-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.login-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.login-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.92rem;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1f2937;
    background: #fbfcfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-input:hover {
    border-color: #cfd8df;
}

.login-input:focus {
    outline: none;
    border-color: #2f8f83;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 143, 131, 0.14);
}

.login-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.login-toggle-password:hover {
    background: #f3f4f6;
    color: #2f8f83;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f8f83 0%, #256e65 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(47, 143, 131, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(47, 143, 131, 0.34);
    filter: brightness(1.03);
}

.login-submit:active {
    transform: translateY(0);
}

.login-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}

.login-footer-note i {
    margin-top: 2px;
    color: #b0b8c1;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: auto;
        padding: 40px 28px 32px;
    }

    .login-hero-features {
        display: none;
    }

    .login-hero-content h1 {
        font-size: 1.85rem;
    }

    .login-brand-mark {
        width: 96px;
        height: 96px;
    }

    .login-brand-logo {
        width: 72px;
        height: 72px;
    }

    .login-panel {
        padding: 24px 20px 40px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
}
