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

:root {
    --navy: #0d2e6e;
    --navy-dark: #0a2256;
    --navy-mid: #1a4a9e;
    --white: #ffffff;
    --off-white: #f5f7fa;
    --border: #e2e8f0;
    --text-main: #1a202c;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --red: #dc2626;
    --green: #16a34a;
    --focus-ring: rgba(13, 46, 110, 0.15);
}

html,
body {
    height: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ---- Left Banner ---- */
.banner {
    flex: 1.15;
    position: relative;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    overflow: hidden;
}

.banner-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
}

.banner-slide.is-active {
    opacity: 0.55;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(10, 34, 86, 0.88) 0%, rgba(26, 74, 158, 0.65) 100%);
}

.banner-top,
.banner-mid,
.banner-bottom {
    position: relative;
    z-index: 1;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.logo-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1.5px;
}

/* ---- Slideshow dot indicators ---- */
.slide-dots {
    display: flex;
    gap: 6px;
    margin-top: 1.5rem;
}

.slide-dot {
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s;
}

.slide-dot.is-active {
    background: rgba(255, 255, 255, 0.85);
}

.logo-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.logo-text small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.banner-headline {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.banner-headline em {
    font-style: normal;
    color: #93c5fd;
}

.banner-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    max-width: 340px;
}

.banner-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 12px;
    border-radius: 100px;
}

.role-pill i {
    font-size: 13px;
}

/* ---- Right Form Panel ---- */
.form-panel {
    width: 460px;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem;
    border-left: 1px solid var(--border);
}

.form-header {
    margin-bottom: 2rem;
}

.form-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* ---- Alert ---- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--red);
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--green);
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Form Fields ---- */
.field {
    margin-bottom: 1.25rem;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.field label,
.field-label-row label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 17px;
    pointer-events: none;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.field input::placeholder {
    color: var(--text-light);
}

.pass-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.pass-toggle:hover {
    color: var(--text-muted);
}

.forgot-link {
    font-size: 12.5px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ---- Submit Button ---- */
.btn-submit {
    width: 100%;
    height: 46px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.25rem;
}

.btn-submit:hover {
    background: var(--navy-dark);
}

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

.btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Divider ---- */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0 1.25rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

/* ---- Footer Links ---- */
.form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

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

.form-footer .sep {
    margin: 0 10px;
    color: var(--border);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .banner {
        display: none;
    }

    .form-panel {
        width: 100%;
        padding: 2.5rem 1.5rem;
        border-left: none;
    }

    .page {
        background: var(--white);
    }
}

@media (max-width: 400px) {
    .form-panel {
        padding: 2rem 1.25rem;
    }
}
