:root {
    --navy: #082f49; --blue: #0369a1; --cyan: #0891b2; --sky: #e0f2fe;
    --ink: #172033; --muted: #64748b; --line: #dbe5ec; --danger: #b42318;
    --shadow: 0 28px 80px rgba(8, 47, 73, .18);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0; color: var(--ink); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background: radial-gradient(circle at 8% 8%, rgba(14,165,233,.18), transparent 28%),
        radial-gradient(circle at 92% 90%, rgba(8,145,178,.14), transparent 30%), #f4f9fc;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.login-shell {
    width: min(1120px, 100%); min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr;
    overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: var(--shadow);
}
.login-visual { position: relative; min-height: 680px; overflow: hidden; }
.login-visual__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-visual__overlay { position: absolute; inset: 0; background: linear-gradient(155deg, rgba(3,47,71,.72), rgba(2,86,116,.9)); }
.login-visual__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 52px; color: #fff; }
.brand-mark { width: fit-content; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(2,47,71,.16); }
.brand-mark img { display: block; width: 132px; height: auto; }
.visual-copy { margin: auto 0; max-width: 480px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.visual-copy h1 { margin: 0 0 20px; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.visual-copy p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.82); }
.visual-note { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.78); }
.visual-note i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.login-panel { display: grid; place-items: center; padding: 48px 56px; background: #fff; }
.login-panel__inner { width: min(400px, 100%); }
.mobile-brand { display: none; margin-bottom: 32px; }
.mobile-brand img { display: block; width: 120px; height: auto; }
.form-header { display: flex; align-items: center; gap: 15px; }
.form-header__icon { display: grid; flex: 0 0 auto; width: 48px; height: 48px; place-items: center; color: var(--blue); background: var(--sky); border-radius: 15px; font-size: 20px; }
.form-header__eyebrow { margin: 0 0 4px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.form-header h2 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.form-intro { margin: 20px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.alert { display: flex; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.alert i { margin-top: 2px; }
.alert div { display: grid; gap: 2px; }
.alert--error { color: var(--danger); background: #fff1f0; border: 1px solid #fecdca; }
.login-form { display: grid; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 700; color: #344054; }
.input-wrap { position: relative; display: flex; align-items: center; color: #94a3b8; }
.input-wrap > i { position: absolute; left: 16px; z-index: 1; }
.input-wrap input { width: 100%; height: 52px; padding: 0 48px 0 44px; color: var(--ink); background: #f8fafc; border: 1px solid var(--line); border-radius: 13px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input::placeholder { color: #9aa8b9; }
.input-wrap input:focus { background: #fff; border-color: #38bdf8; box-shadow: 0 0 0 4px rgba(14,165,233,.12); }
.input-wrap:focus-within > i { color: var(--blue); }
.input-wrap--invalid input { border-color: #f97066; }
.password-toggle { position: absolute; right: 8px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: #64748b; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--blue); background: var(--sky); outline: none; }
.remember-check { display: flex; width: fit-content; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; }
.remember-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.submit-button { display: flex; width: 100%; height: 54px; align-items: center; justify-content: center; gap: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); border: 0; border-radius: 13px; box-shadow: 0 12px 24px rgba(3,105,161,.22); font-weight: 750; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(3,105,161,.3); }
.submit-button:focus-visible { outline: 3px solid rgba(14,165,233,.3); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-button.is-loading i { animation: pulse 1s ease-in-out infinite; }
.recaptcha-note { margin: -2px 0 0; color: #8491a3; font-size: 10.5px; line-height: 1.55; text-align: center; }
.recaptcha-note i { margin-right: 4px; }
.recaptcha-note a { color: #52677f; }
.login-footer { display: flex; justify-content: center; gap: 9px; margin-top: 30px; color: #8491a3; font-size: 12px; }
.login-footer a { text-decoration: none; }
.login-footer a:hover { color: var(--blue); text-decoration: underline; }
@keyframes pulse { 50% { transform: translateX(4px); } }
@media (max-width: 860px) {
    body { background: #e8f4f8; }
    .login-page { min-height: 100svh; padding: 20px; }
    .login-shell { width: min(560px, 100%); min-height: auto; grid-template-columns: 1fr; background: transparent; }
    .login-visual { display: none; }
    .login-panel {
        position: relative; min-height: calc(100svh - 40px); display: block; overflow: hidden;
        padding: 150px 28px 36px; background:
            linear-gradient(180deg, rgba(3,47,71,.38), rgba(3,105,161,.82) 230px, #eaf6fa 231px),
            url("/login/img/bg-airbaku.jpg") center top / 100% 260px no-repeat;
    }
    .login-panel::before {
        content: ""; position: absolute; width: 230px; height: 230px; top: -95px; right: -75px;
        border: 42px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none;
    }
    .login-panel__inner {
        position: relative; z-index: 1; width: min(430px, 100%); margin: 0 auto; padding: 34px 34px 26px;
        background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.88); border-radius: 24px;
        box-shadow: 0 24px 60px rgba(8,47,73,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    .mobile-brand { display: block; width: fit-content; margin: -66px auto 28px; padding: 9px 14px; background: #fff; border-radius: 13px; box-shadow: 0 10px 24px rgba(8,47,73,.15); }
    .mobile-brand img { width: 112px; }
    .form-header { justify-content: center; text-align: left; }
    .form-intro { text-align: center; }
    .input-wrap input { font-size: 16px; }
}
@media (max-width: 480px) {
    body { min-height: -webkit-fill-available; }
    .login-page { display: block; min-height: 100svh; padding: 0; background: #eaf6fa; }
    .login-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .login-panel {
        min-height: 100vh; min-height: 100dvh;
        padding: calc(132px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, rgba(3,47,71,.34), rgba(3,105,161,.85) 205px, #eaf6fa 206px),
            url("/login/img/bg-airbaku.jpg") center top / 100% 235px no-repeat;
    }
    .login-panel__inner { padding: 30px 20px 23px; border-radius: 22px; }
    .mobile-brand { margin-top: -58px; margin-bottom: 25px; }
    .form-header h2 { font-size: 25px; }
    .form-header__icon { width: 44px; height: 44px; }
    .login-form { gap: 18px; }
    .login-footer { margin-top: 24px; }
}
@media (max-width: 360px) {
    .login-panel { padding-inline: 10px; }
    .login-panel__inner { padding-inline: 16px; }
    .form-header__icon { display: none; }
    .form-header { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
