
:root {
    --navy: #101b35;
    --navy-light: #192b4c;
    --blue: #4778e8;
    --text: #17233b;
    --muted: #78849a;
    --border: #dfe4ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #f5f7fb;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 55px 9%;
    color: white;
    background:
        radial-gradient(circle at 75% 45%, #263e6a 0, transparent 38%),
        linear-gradient(145deg, #101b35, #0a1225);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: white;
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 4px;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-message {
    max-width: 510px;
    margin: auto 0;
}

.eyebrow {
    color: #6f98fa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.brand-message h1 {
    margin: 24px 0;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.brand-message p {
    max-width: 420px;
    color: #aab5c8;
    font-size: 17px;
    line-height: 1.8;
}

.brand-footer {
    color: #8291ad;
    font-size: 11px;
    letter-spacing: .7px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 40px 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-card h2 {
    margin-top: 14px;
    font-size: 34px;
    letter-spacing: -1px;
}

.login-description {
    margin: 10px 0 35px;
    color: var(--muted);
    font-size: 14px;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card label {
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    height: 49px;
    margin-bottom: 23px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 14px;
}

.login-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(71,120,232,.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 85px;
}

.toggle-password {
    position: absolute;
    top: 13px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.login-button {
    height: 50px;
    margin-top: 9px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    transition: .2s;
}

.login-button:hover {
    background: #3568d6;
}

.login-button:disabled {
    cursor: wait;
    opacity: .65;
}

.login-message {
    display: none;
    margin: -5px 0 12px;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.5;
}

.login-message.error {
    display: block;
    color: #a52a37;
    background: #fff0f1;
}

.login-message.success {
    display: block;
    color: #176b45;
    background: #eaf8f0;
}

.security-note {
    margin-top: 28px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.security-note span {
    margin-right: 5px;
}

.mobile-brand {
    display: none;
}

@media (max-width: 760px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 35px 25px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 55px;
        font-size: 19px;
        letter-spacing: 3px;
    }

    .login-card h2 {
        font-size: 30px;
    }
}
