:root {
    --blue: #3156df;
    --blue2: #2446c4;
    --ink: #17233e;
    --muted: #77829a;
    --line: #e8ecf5;
    --bg: #f5f7fc;
    --card: #fff;
    --shadow: 0 8px 26px rgba(35, 52, 91, 0.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.brand {
    font-family: 'Manrope', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    display: flex;
    align-items: center;
}
.brand span { color: #9fc0ff; }
.brand-logo-img {
    max-height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(350px, 1.1fr) minmax(430px, 1fr);
    background: #fff;
}

/* Left Art Panel */
.login-art {
    padding: 44px 8%;
    background: #1e3a8a;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-art:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    right: -190px;
    bottom: -180px;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.02);
}

.art-copy {
    margin: auto 0;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #aebfff;
    text-transform: uppercase;
}

.art-copy h1 {
    font: 800 clamp(34px, 4vw, 54px)/1.15 'Manrope', sans-serif;
    letter-spacing: -2px;
    margin: 20px 0;
}

.art-copy h1 span { color: #9fc0ff; }

.art-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.8;
    color: #dce4ff;
    max-width: 440px;
}

.mini-stats {
    display: flex;
    gap: 14px;
    margin-top: 42px;
}

.mini-stats div {
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 22px;
    min-width: 105px;
    backdrop-filter: blur(8px);
}

.mini-stats b, .mini-stats small { display: block; }
.mini-stats b { font-size: 20px; font-weight: 800; }
.mini-stats small { color: #d0d9ff; margin-top: 5px; font-size: 12px; }

.art-footer {
    font-size: 12px;
    color: #c5d0ff;
    position: relative;
    z-index: 1;
}

/* Right Panel */
.login-panel {
    display: grid;
    place-items: center;
    padding: 45px 7%;
}

.login-card {
    width: min(100%, 460px);
}

.login-card-logo {
    margin-bottom: 20px;
}

.login-card-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.blue {
    color: var(--blue);
    margin-bottom: 8px;
}

.login-card h2 {
    font: 800 28px 'Manrope', sans-serif;
    margin: 0 0 10px;
    letter-spacing: -0.7px;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
    margin: 0 0 24px;
}

.login-card form label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin: 14px 0 6px;
    color: #2e384d;
}

.field {
    height: 48px;
    border: 1px solid #dfe4ef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    color: #929bb0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(49, 86, 223, 0.12);
}

.field input, .field select {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.field input::placeholder { color: #a0a8b8; }

.field svg {
    width: 18px;
    height: 18px;
    stroke: #8d97ad;
    flex-shrink: 0;
}

.reveal {
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 20px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    cursor: pointer;
}

a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

.primary {
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 7px 16px rgba(49, 86, 223, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.primary:hover {
    background: var(--blue2);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(49, 86, 223, 0.35);
}

.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert-box {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}
.alert-danger { background: #fde8e8; color: #9b1c1c; border: 1px solid #fbd5d5; }
.alert-success { background: #def7ec; color: #03543f; border: 1px solid #bcf0da; }

.login-divider {
    border-top: 1px solid var(--line);
    margin: 24px 0 20px;
    position: relative;
    text-align: center;
}

.login-divider span {
    background: #fff;
    position: relative;
    top: -9px;
    padding: 0 12px;
    color: #a0a8b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.register-line {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.copyright {
    text-align: center;
    font-size: 11px;
    color: #a0a8b8;
    margin-top: 28px;
}

.mobile-brand { display: none; }

@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-art { display: none; }
    .login-panel { padding: 35px 22px; }
    .mobile-brand { display: block; color: #17244b; margin-bottom: 30px; }
}
