/* ── RESET ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── BODY ── */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── PAGE WRAPPER ── */
.login-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── CARD ── */
.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.18), 0 4px 16px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════
   LEFT PANEL — blue branded side
═══════════════════════════════════ */
.left-panel {
    position: relative;
    background: linear-gradient(145deg, #1d4ed8 0%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow: hidden;
}

/* Wave SVG background */
.wave-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.left-content {
    position: relative;
    z-index: 1;
    max-width: 340px;
    width: 100%;
}

/* Logo */
.logo-wrap {
    margin-bottom: 10px;
    text-align:center;
}

/* Brand title */
.brand-title {
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

/* Divider with dot */
.brand-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .brand-divider span:not(.dot) {
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,0.35);
    }

    .brand-divider .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #fff;
        flex: none;
    }

/* Brand sub */
.brand-sub {
    font-size: clamp(11px, 1.1vw, 13px);
    color: rgba(255,255,255,0.75);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Feature list */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
}

    .feature-list li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }

.fi-icon {
    font-size: 28px;
    min-width: 36px;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
}

.feature-list li div strong {
    display: block;
    font-size: clamp(12px, 1.1vw, 13px);
    color: #fff;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-list li div p {
    font-size: clamp(10px, 0.95vw, 12px);
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin: 0;
}

/* ═══════════════════════════════════
   RIGHT PANEL — white form side
═══════════════════════════════════ */
.right-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.form-inner {
    width: 100%;
    max-width: 360px;
}

/* Titles */
.form-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 6px;
}

.form-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.4;
}

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Field group */
.field-group {
    margin-bottom: 18px;
}

    .field-group label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #1e40af;
        margin-bottom: 6px;
    }

/* Input wrap */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 11px 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .input-wrap input:focus {
        border-color: #1d4ed8;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
    }

    .input-wrap input::placeholder {
        color: #9ca3af;
    }

/* Password toggle */
.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}

    .toggle-pw:hover {
        color: #1d4ed8;
    }

/* Form row: remember + forgot */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

/* Remember me */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

    .remember-me input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #1d4ed8;
        cursor: pointer;
    }

/* Forgot link */
.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #1e3a8a;
        text-decoration: underline;
    }

/* Login button */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

    .btn-login:hover {
        background: #1e40af;
        box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
    }

    .btn-login:active {
        transform: scale(0.99);
    }

/* OR divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 13px;
}

    .or-divider::before,
    .or-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

/* SSO button */
.btn-sso {
    width: 100%;
    padding: 11px;
    background: #fff;
    color: #1d4ed8;
    border: 1.5px solid #1d4ed8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s;
}

    .btn-sso:hover {
        background: #eff6ff;
    }

/* Footer */
.footer-copy {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 24px;
}
.left-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a56db, #1e40af);
}

    /* Wave Layer 1 */
    .left-panel::before {
        content: "";
        position: absolute;
        bottom: -60px;
        left: -10%;
        width: 120%;
        height: 220px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
        animation: waveLeft 12s ease-in-out infinite alternate;
        z-index: 1;
    }

.left-content {
    position: relative;
    z-index: 3;
}

@keyframes waveLeft {
    0% {
        transform: translateX(-50px) rotate(0deg);
    }

    100% {
        transform: translateX(50px) rotate(3deg);
    }
}

.wave-svg-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}


.wave-svg-bottom {
    bottom: 0;
}

    .wave-svg-bottom svg {
        width: 100%;
        height: 180px;
        display: block;
    }


/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        grid-template-columns: 1fr;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 40px 24px;
        min-height: 100vh;
        background: linear-gradient(160deg, #eff6ff 0%, #fff 60%);
    }
}

@media (max-width: 400px) {
    .right-panel {
        padding: 100px 18px 32px;
    }

    .form-title {
        font-size: 22px;
    }
}
