:root {
    --blue-950: #062a62;
    --blue-900: #073978;
    --blue-800: #074ca3;
    --blue-700: #0a63cf;
    --blue-600: #0f7ae5;
    --blue-500: #1e9bf2;
    --cyan-400: #22b8ee;
    --ink-950: #0c1f3a;
    --ink-700: #40516a;
    --ink-500: #718096;
    --surface: #ffffff;
    --surface-soft: #f5f9ff;
    --border: #dbe7f5;
    --danger: #c92a2a;
    --shadow: 0 28px 80px rgba(10, 52, 105, .18);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #eff6ff; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink-950);
    background:
        radial-gradient(circle at 20% 12%, rgba(30, 155, 242, .13), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #edf5ff 52%, #f8fbff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr);
}

.brand-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 6vw, 96px);
    color: #fff;
    display: flex;
    align-items: center;
    background:
        linear-gradient(145deg, rgba(5, 42, 98, .97), rgba(7, 76, 163, .95) 48%, rgba(15, 122, 229, .90));
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%);
}

.brand-panel__content { position: relative; z-index: 2; max-width: 720px; }

.brand-panel__glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .55; }
.brand-panel__glow--one { width: 460px; height: 460px; top: -170px; right: -130px; background: rgba(34, 184, 238, .24); }
.brand-panel__glow--two { width: 340px; height: 340px; bottom: -160px; left: -110px; background: rgba(118, 197, 255, .16); }

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-panel h1 {
    margin: 26px 0 18px;
    max-width: 650px;
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.brand-panel__lead {
    max-width: 620px;
    margin: 0;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.65;
    color: rgba(255,255,255,.82);
}

.journey {
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.91);
    font-size: 13px;
    font-weight: 700;
}

.journey span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
}
.journey i { width: 20px; height: 1px; background: rgba(255,255,255,.35); }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 50px;
}

.trust-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
}
.trust-card strong { display: block; margin-bottom: 7px; font-size: 14px; }
.trust-card span { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.55; }

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 72px);
}

.login-card {
    width: min(100%, 520px);
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(197, 216, 239, .88);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.login-card__header { margin-bottom: 30px; }
.logo { display: block; width: min(100%, 350px); height: auto; margin: 0 auto 28px; object-fit: contain; }
.welcome-copy__kicker { color: var(--blue-700); font-size: 13px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.welcome-copy h2 { margin: 7px 0 8px; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.035em; }
.welcome-copy p { margin: 0; color: var(--ink-700); line-height: 1.6; }

.login-form { display: grid; gap: 20px; }
.field-group { display: grid; gap: 8px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.field-group label { font-size: 13px; font-weight: 750; color: #233853; }

.field-control { position: relative; }
.field-control input {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    background: #fbfdff;
    color: var(--ink-950);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field-control input::placeholder { color: #9aabc0; }
.field-control input:hover { border-color: #bfd2e8; }
.field-control input:focus { border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(15, 122, 229, .12); }
.field-control input[aria-invalid="true"] { border-color: #e03131; box-shadow: 0 0 0 4px rgba(224,49,49,.09); }

.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #7790ad;
    pointer-events: none;
}
.field-icon svg, .password-toggle svg { width: 100%; height: 100%; fill: currentColor; }

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7089a6;
    cursor: pointer;
}
.password-toggle:hover { background: #eef5fd; color: var(--blue-700); }
.password-toggle:focus-visible { outline: 3px solid rgba(15,122,229,.2); }

.text-link { color: var(--blue-700); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.field-error { min-height: 16px; color: var(--danger); font-size: 12px; }

.remember { display: flex; align-items: center; gap: 9px; color: var(--ink-700); font-size: 13px; cursor: pointer; }
.remember input { width: 17px; height: 17px; accent-color: var(--blue-700); }

.primary-button {
    min-height: 54px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(110deg, var(--blue-900), var(--blue-700) 55%, var(--blue-500));
    color: #fff;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 14px 32px rgba(10, 99, 207, .25);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(10, 99, 207, .31); }
.primary-button:active { transform: translateY(0); }
.primary-button:focus-visible { outline: 4px solid rgba(15,122,229,.2); outline-offset: 3px; }
.primary-button:disabled { opacity: .72; cursor: progress; transform: none; }

.button-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; margin-left: 8px; vertical-align: -4px; }
.primary-button.is-loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { margin-bottom: 18px; padding: 13px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid #ffd5d5; color: #842029; background: #fff5f5; }
.alert.is-info { border-color: #cfe4ff; color: #084298; background: #f2f8ff; }

.assistant-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 26px;
    padding: 15px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f3f8ff, #f8fcff);
    border: 1px solid #deebf9;
}
.assistant-tip__avatar { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--blue-800), var(--cyan-400)); }
.assistant-tip strong { font-size: 13px; }
.assistant-tip p { margin: 4px 0 0; color: var(--ink-700); font-size: 12px; line-height: 1.5; }

.login-footer { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; color: var(--ink-500); font-size: 11px; }
.login-footer a { color: var(--blue-700); text-decoration: none; font-weight: 700; }

@media (max-width: 980px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { min-height: 330px; padding: 44px 28px; }
    .brand-panel h1 { font-size: clamp(36px, 8vw, 54px); max-width: 780px; }
    .brand-panel__lead { max-width: 780px; }
    .trust-grid { display: none; }
    .journey { margin-top: 28px; }
    .login-panel { padding: 28px 18px 48px; }
}

@media (max-width: 560px) {
    .brand-panel { min-height: auto; padding: 34px 20px 36px; }
    .brand-panel h1 { margin-top: 18px; font-size: 36px; }
    .brand-panel__lead { font-size: 16px; }
    .journey { display: none; }
    .login-panel { padding: 18px 12px 34px; align-items: flex-start; }
    .login-card { padding: 24px 18px; border-radius: 22px; }
    .logo { width: min(100%, 310px); margin-bottom: 22px; }
    .field-label-row { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.assistant-tip__avatar img{width:100%;height:100%;object-fit:contain;border-radius:inherit;display:block}
