
:root {
    --navy: #091b46;
    --navy-dark: #071537;
    --red: #ed1938;
    --text: #142247;
    --muted: #71809a;
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, system-ui, -apple-system,
                 "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: #f5f7fc;
    color: var(--text);
}

button, input {
    font: inherit;
}

a {
    color: var(--red);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-wrap {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    min-height: 100vh;
    min-height: 100svh;
}

/* Branding */

.brand-pane {
    background:
        radial-gradient(
            ellipse at 20% 15%,
            #233d7b 0%,
            transparent 42%
        ),
        linear-gradient(
            152deg,
            #08173a,
            #102956 70%,
            #071735
        );

    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(42px, 6vw, 100px);
    color: #fff;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.brand-logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
}

.eyebrow {
    margin: 65px 0 20px;
    color: #bfcde9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-pane h1 {
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 0 0 22px;
}

.brand-pane h1 span {
    color: #ff4160;
}

.brand-copy {
    max-width: 470px;
    font-size: 16px;
    line-height: 1.75;
    color: #c1cee8;
}

.assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 45px;
    font-size: 13px;
    color: #e4ecfb;
}

.brand-foot {
    position: absolute;
    bottom: 30px;
    left: clamp(42px, 6vw, 100px);
    font-size: 12px;
    color: #95a9cf;
}

/* Login Form */

.form-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px 28px;
    background: linear-gradient(140deg, #fff, #f9fbff);
}

.form-inner {
    width: 100%;
    max-width: 430px;
}

.mobile-logo {
    display: none;
}

.small-top {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 14px;
}

.form-inner h2 {
    font-size: 36px;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin: 0 0 10px;
}

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

.form-field {
    margin-bottom: 22px;
}

.form-field label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 650;
}

.text-input {
    width: 100%;
    height: 54px;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 0 16px;
    outline: none;
    background: #fff;
    color: var(--navy);
    transition: 0.2s;
}

.text-input::placeholder {
    color: #9ca9bb;
}

.text-input:focus {
    border-color: #4966bb;
    box-shadow: 0 0 0 4px #324eac15;
}

.input-wrap {
    position: relative;
}

.input-wrap .text-input {
    padding-right: 80px;
}

.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #425a84;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 600;
}

.primary-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px;
    background: var(--red);
    color: white;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 22px #ed193822;
    transition: 0.2s;
}

.primary-btn:hover {
    background: #cb1130;
    transform: translateY(-1px);
}

.primary-btn:focus-visible,
.show-password:focus-visible,
a:focus-visible {
    outline: 3px solid #698be1;
    outline-offset: 3px;
}

.security-note {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #74829b;
}

.secondary-text {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: var(--muted);
}

.secondary-text a {
    font-weight: 700;
}

.form-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 23px;
    margin-top: 55px;
    border-top: 1px solid #e8edf5;
    color: #8a98ad;
    font-size: 11px;
}

.form-bottom strong {
    color: #5a6c8f;
}

.otp-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 25px;
    font-size: 13px;
    color: var(--muted);
}

.message {
    padding: 13px 15px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.message.error {
    background: #fff0f1;
    color: #af2438;
    border: 1px solid #ffd7df;
}

.message.success {
    background: #ecfdf5;
    color: #056648;
    border: 1px solid #c0f0d8;
}

[hidden] {
    display: none !important;
}

/* Tablet & Mobile */

@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .brand-pane {
        display: none;
    }

    .form-pane {
        min-height: 100vh;
        min-height: 100svh;
        padding: 35px 20px;
    }

    .mobile-logo {
        display: block;
        width: 230px;
        max-width: 85%;
        height: auto;
        margin-bottom: 38px;
    }

    .form-inner {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .form-pane {
        align-items: flex-start;
        padding: 35px 22px 25px;
    }

    .form-inner h2 {
        font-size: 31px;
    }

    .subtitle {
        margin-bottom: 30px;
    }

    .mobile-logo {
        width: 205px;
        margin-bottom: 40px;
    }

    .text-input {
        height: 52px;
    }

    .form-bottom {
        display: block;
        line-height: 2;
        margin-top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
