@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
    --setaero-navy: #000d68;
    --setaero-deep: #010d49;
    --setaero-blue: #4293ff;
    --setaero-orange: #f48806;
    --setaero-ink: #15234c;
    --setaero-muted: #5d6b88;
    --setaero-paper: #f2f5fa;
    --setaero-line: #d7dfec;
}

* { box-sizing: border-box; }

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

body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--setaero-ink);
    background: var(--setaero-paper);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    min-height: calc(100vh - 66px);
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
}

.left-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 650px;
    padding: clamp(30px, 4vw, 64px) clamp(34px, 6vw, 92px);
    color: #fff;
    background: var(--setaero-deep);
}

.left-section::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background-image: linear-gradient(90deg, rgba(1, 13, 73, .88) 0%, rgba(1, 13, 73, .70) 58%, rgba(1, 13, 73, .42) 100%),
        linear-gradient(0deg, rgba(0, 13, 104, .45), transparent 60%);
}

.left-section::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .19;
    background: linear-gradient(90deg, transparent 49.9%, rgba(66, 147, 255, .34) 50%, transparent 50.1%),
        linear-gradient(0deg, transparent 49.9%, rgba(66, 147, 255, .23) 50%, transparent 50.1%);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
    pointer-events: none;
}

.technical-art {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
}

.brand-topline {
    display: flex;
    align-items: center;
    min-height: 50px;
}

.brand-logo {
    display: block;
    width: 150px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.brand-content {
    width: min(100%, 570px);
    margin: auto 0;
    padding: 76px 0 64px;
    animation: reveal-in .65s cubic-bezier(.2,.75,.3,1) both;
}

.brand-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: #9ac5ff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.brand-kicker::before {
    width: 28px;
    height: 2px;
    content: "";
    background: var(--setaero-orange);
}

.brand-title {
    max-width: 530px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.45rem, 4.15vw, 4.35rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.brand-title .product-name { color: #fff; }
.brand-title .product-mark { color: var(--setaero-blue); }

.brand-subtitle {
    max-width: 440px;
    margin: 24px 0 0;
    color: #d0daf0;
    font-size: 1.06rem;
    line-height: 1.75;
}

.brand-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 42px;
    color: rgba(229, 239, 255, .76);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-rule::before {
    width: 46px;
    height: 1px;
    content: "";
    background: var(--setaero-orange);
}

.brand-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(226, 236, 255, .75);
    font-size: .78rem;
    letter-spacing: .06em;
}

.brand-bottom i { color: var(--setaero-blue); font-size: 1rem; }

.right-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 92px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(66, 147, 255, .09), transparent 35%),
        var(--setaero-paper);
}

.right-section::before {
    position: absolute;
    top: 8%;
    right: 0;
    width: 3px;
    height: 108px;
    content: "";
    background: var(--setaero-orange);
}

.login-form-container {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    animation: reveal-in .7s .08s cubic-bezier(.2,.75,.3,1) both;
}

.login-overline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--setaero-navy);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.login-overline::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--setaero-orange);
}

.login-header { margin-bottom: 34px; }

.login-title {
    margin: 0 0 9px;
    color: var(--setaero-deep);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.login-subtitle {
    margin: 0;
    color: var(--setaero-muted);
    font-size: .97rem;
    line-height: 1.65;
}

.login-form-container form { margin: 0; }
.input-with-icon { position: relative; margin-bottom: 21px; }

.field-label {
    display: block;
    margin: 0 0 9px;
    color: #263657;
    font-size: .84rem;
    font-weight: 600;
}

.input-icon {
    position: absolute;
    z-index: 2;
    top: 43px;
    left: 16px;
    color: #73819c;
    font-size: 1rem;
    transition: color .18s ease;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 54px;
    padding: 0 15px 0 45px;
    border: 1px solid #cbd5e5;
    border-radius: 5px;
    color: var(--setaero-ink);
    background: #fbfcfe;
    font-family: inherit;
    font-size: .98rem;
    box-shadow: 0 1px 2px rgba(1, 13, 73, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-control::placeholder { color: #8c97aa; opacity: 1; }
.form-control:hover { border-color: #9eacc4; }
.input-with-icon:focus-within .input-icon { color: var(--setaero-navy); }

.form-control:focus {
    border-color: var(--setaero-blue);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 147, 255, .2);
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -3px 0 24px;
}

.forgot-row a, .register-link a {
    color: #0757b7;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}

.forgot-row a:hover, .register-link a:hover { color: var(--setaero-navy); text-decoration: underline; }
.forgot-row a:focus-visible, .register-link a:focus-visible, .footer-links a:focus-visible {
    outline: 3px solid rgba(66, 147, 255, .55);
    outline-offset: 4px;
    border-radius: 2px;
}

.btn-login {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    border: 1px solid var(--setaero-navy);
    border-radius: 5px;
    color: #fff;
    background: var(--setaero-navy);
    font-family: inherit;
    font-size: .97rem;
    font-weight: 700;
    letter-spacing: .015em;
    box-shadow: 0 7px 16px rgba(0, 13, 104, .14);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-login:hover, .btn-login:focus {
    color: #fff;
    border-color: #032b9d;
    background: #032b9d;
    box-shadow: 0 10px 22px rgba(0, 13, 104, .2);
}

.btn-login:hover { transform: translateY(-1px); }
.btn-login:focus-visible { outline: 3px solid rgba(66, 147, 255, .62); outline-offset: 3px; }
.btn-login:active { transform: translateY(0); }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 17px;
    color: #76839a;
    font-size: .78rem;
    white-space: nowrap;
}

.divider::before, .divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--setaero-line);
}

.divider span { color: #6b7890; }
.register-link { text-align: center; color: var(--setaero-muted); font-size: .91rem; }
.register-link a { margin-left: 4px; }

.footer {
    position: relative;
    z-index: 2;
    min-height: 66px;
    padding: 16px clamp(22px, 5vw, 76px);
    color: #fff;
    background: #050b26;
}

.footer-content {
    width: min(100%, 1440px);
    min-height: 34px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 25px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d2def4;
    font-size: .79rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease;
}
.footer-links a i { color: #8dbdff; }
.footer-links a:hover { color: #fff; }
.footer-copyright { color: var(--setaero-orange); font-size: .76rem; text-align: right; }

.alert {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .88rem;
}
.alert-success { color: #155b40; border-color: #a9d7c1; background: #e8f6ef; }
.alert-danger { color: #8e2830; border-color: #e8b8bc; background: #fff0f0; }
.alert-warning { color: #76450b; border-color: #ebd099; background: #fff8e9; }
.alert-info { color: #174e7f; border-color: #b9d4eb; background: #edf6ff; }
.alert .btn-close { padding: 16px; }

.policy-modal .modal-content { overflow: hidden; border: 1px solid #d7dfec; border-radius: 7px; }
.policy-modal .modal-header { padding: 18px 24px; color: #fff; background: var(--setaero-navy); border-bottom: 3px solid var(--setaero-orange); }
.policy-modal .modal-title { font-family: inherit; font-size: 1.12rem; font-weight: 600; }
.policy-modal .modal-body { max-height: 60vh; padding: 24px; overflow-y: auto; }
.policy-modal .modal-body h5 { margin: 20px 0 9px; color: var(--setaero-navy); font-size: 1rem; font-weight: 700; }
.policy-modal .modal-body h5:first-child { margin-top: 0; }
.policy-modal .modal-body p, .policy-modal .modal-body li { color: #465572; font-size: .94rem; line-height: 1.7; }

@keyframes reveal-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .login-wrapper { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
    .left-section { padding-inline: 36px; }
    .right-section { padding-inline: 42px; }
    .brand-title { font-size: clamp(2.4rem, 5vw, 3.5rem); }
}

@media (max-width: 700px) {
    .login-wrapper { display: flex; flex-direction: column; min-height: auto; }
    .left-section { min-height: 278px; padding: 25px 25px 29px; }
    .brand-logo { width: 135px; height: 45px; }
    .brand-content { padding: 32px 0 27px; }
    .brand-kicker { margin-bottom: 12px; font-size: .67rem; }
    .brand-title { max-width: 420px; font-size: clamp(2rem, 8vw, 3rem); }
    .brand-subtitle { max-width: 470px; margin-top: 12px; font-size: .91rem; line-height: 1.55; }
    .brand-rule, .brand-bottom { display: none; }
    .right-section { min-height: 470px; flex: 1; align-items: flex-start; padding: 45px 25px 50px; }
    .right-section::before { top: 0; right: 25px; width: 42px; height: 3px; }
    .login-form-container { max-width: 440px; margin: auto; }
    .login-header { margin-bottom: 27px; }
    .footer { padding: 17px 22px; }
    .footer-content { flex-direction: column; justify-content: center; gap: 12px; }
    .footer-links { justify-content: center; gap: 20px; }
    .footer-copyright { text-align: center; font-size: .72rem; }
}

@media (max-width: 380px) {
    .left-section { min-height: 252px; padding-inline: 20px; }
    .right-section { padding-inline: 20px; }
    .footer-links { gap: 14px; }
    .footer-links a { font-size: .75rem; }
}

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