:root {
    --navy: #07182b;
    --navy-soft: #102a46;
    --cyan: #12a9df;
    --cyan-light: #69d5f4;
    --text: #10233a;
    --muted: #64748b;
    --line: #dbe5ef;
    --danger-bg: #fff1f2;
    --danger: #b42335;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #eef4f8;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 46%) 1fr;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    padding: 64px clamp(42px, 6vw, 96px);
    color: white;
    background:
        radial-gradient(circle at 15% 15%, rgba(18, 169, 223, .30), transparent 32%),
        radial-gradient(circle at 90% 85%, rgba(105, 213, 244, .14), transparent 30%),
        linear-gradient(145deg, #061525 0%, #0b223b 56%, #102f4d 100%);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(105, 213, 244, .12);
    border-radius: 50%;
}

.brand-panel::before { width: 420px; height: 420px; right: -210px; top: -160px; }
.brand-panel::after { width: 540px; height: 540px; left: -330px; bottom: -330px; }

.brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.logo-box {
    width: min(100%, 320px);
    padding: 18px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.logo-box img, .mobile-logo img { display: block; width: 100%; height: auto; }

.brand-copy { margin: auto 0; padding: 72px 0; }
.eyebrow, .form-eyebrow { color: var(--cyan-light); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.brand-copy h1 { max-width: 520px; margin: 18px 0 22px; font-size: clamp(38px, 4vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.brand-copy p { max-width: 520px; margin: 0; color: #c5d5e5; font-size: 17px; line-height: 1.75; }

.security-note { display: flex; align-items: center; gap: 11px; color: #cfe0ee; font-size: 14px; }
.security-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #062238; font-weight: 900; border-radius: 50%; background: var(--cyan-light); }

.form-panel {
    min-width: 0;
    padding: 48px clamp(28px, 7vw, 110px) 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0, rgba(18, 169, 223, .08), transparent 28%),
        #f8fbfd;
}

.login-card { width: 100%; max-width: 470px; margin: auto; }
.mobile-logo { display: none; }
.form-eyebrow { color: #1287b3; }
.login-card h2 { margin: 12px 0 8px; font-size: 38px; letter-spacing: -.035em; }
.form-intro { margin: 0 0 34px; color: var(--muted); line-height: 1.6; }

.alert { margin-bottom: 22px; padding: 13px 15px; color: var(--danger); font-size: 14px; line-height: 1.45; border: 1px solid #fecdd3; border-radius: 10px; background: var(--danger-bg); }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #7c91a8; font-size: 9px; }
.input-icon.lock { font-size: 10px; }

.input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 18px 0 44px;
    color: var(--text);
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: white;
    box-shadow: 0 4px 15px rgba(13, 38, 64, .035);
    transition: border-color .18s, box-shadow .18s;
}

.input-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(18, 169, 223, .12); }
.input-wrap input::placeholder { color: #9aa9b9; }

button {
    width: 100%;
    height: 56px;
    margin-top: 8px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font: inherit;
    font-weight: 800;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(120deg, #0b79a5, var(--cyan));
    box-shadow: 0 12px 28px rgba(18, 169, 223, .25);
    transition: transform .18s, box-shadow .18s;
}

button:hover { transform: translateY(-1px); box-shadow: 0 15px 34px rgba(18, 169, 223, .32); }
button:focus-visible { outline: 3px solid rgba(18, 169, 223, .28); outline-offset: 3px; }
.help-text { margin: 24px 0 0; color: #8493a4; font-size: 12px; text-align: center; }
.form-panel footer { width: 100%; max-width: 470px; margin: 42px auto 0; color: #8493a4; font-size: 12px; text-align: center; }

@media (max-width: 820px) {
    .login-page { display: block; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100vh; padding: 36px 22px 24px; }
    .mobile-logo { display: block; width: min(270px, 78%); margin: 0 auto 42px; padding: 14px 18px; border: 1px solid #e1eaf1; border-radius: 15px; background: white; box-shadow: 0 12px 32px rgba(7, 24, 43, .08); }
    .login-card h2 { font-size: 32px; }
}

@media (max-width: 420px) {
    .form-panel { padding-left: 18px; padding-right: 18px; }
    .mobile-logo { margin-bottom: 34px; }
}
