:root {
    --navy: #0d2c4a;
    --navy-deep: #081c33;
    --ink: #102a43;
    --muted: #5b6b7c;
    --line: #d7dee7;
    --line-strong: #0d2c4a;
    --fill: #f4f6f8;
    --link: #2f6fed;
    --danger: #b42318;
    --white: #ffffff;
    --radius: 8px;
    --font: "Outfit", system-ui, sans-serif;
    --shadow: 0 18px 50px rgba(8, 28, 51, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--link);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

.login {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    position: relative;
}

.brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    min-height: 100dvh;
}

.brand__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 40%;
    z-index: 0;
}

.brand__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 28, 51, 0.42) 0%, rgba(8, 28, 51, 0.78) 100%),
        linear-gradient(90deg, rgba(8, 28, 51, 0.28) 0%, rgba(8, 28, 51, 0.08) 55%);
}

.brand__content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.1rem 3.25rem 2.4rem;
}

.brand__copy {
    margin-top: auto;
    margin-bottom: auto;
    max-width: 28rem;
    padding-top: 4rem;
}

.brand__eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.brand__title {
    margin: 0;
    font-size: clamp(2.15rem, 3.6vw, 3.15rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.brand__rule {
    width: 3.4rem;
    height: 2px;
    margin: 1.15rem 0 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
}

.brand__lead {
    margin: 0;
    max-width: 22rem;
    font-size: 1.02rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.brand__values {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: auto 0 0;
    padding: 0;
}

.brand__values li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.brand__values svg {
    width: 1.45rem;
    height: 1.45rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login__mark {
    position: absolute;
    left: 46%;
    top: 46%;
    width: min(38vw, 430px);
    height: auto;
    transform: translate(-18%, -52%);
    color: rgba(255, 255, 255, 0.16);
    pointer-events: none;
    z-index: 2;
}

.panel {
    position: relative;
    z-index: 3;
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 1.35rem 2.5rem 1.4rem;
}

.panel__back {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 500;
}

.panel__back svg {
    width: 0.95rem;
    height: 0.95rem;
}

.panel__main {
    width: 100%;
    max-width: 26.5rem;
    margin: auto;
    padding: 1.5rem 0 2rem;
}

.panel__main .logo {
    margin: 0 auto 1.35rem;
}

.panel__title {
    margin: 0;
    text-align: center;
    font-size: 2.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.panel__subtitle {
    margin: 0.45rem 0 1.85rem;
    text-align: center;
    color: var(--navy);
    font-size: 1.02rem;
}

.field {
    margin: 0 0 1.05rem;
}

.field label {
    display: block;
    margin-bottom: 0.42rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__control svg {
    position: absolute;
    left: 0.9rem;
    width: 1.15rem;
    height: 1.15rem;
    color: #8a97a8;
    pointer-events: none;
}

.field__control input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 2.7rem 0.7rem 2.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field__control input::placeholder {
    color: #9aa7b5;
}

.field__control input:hover {
    border-color: #b7c2ce;
}

.field__control input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13, 44, 74, 0.12);
}

.field__toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: #8a97a8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.field__toggle:hover,
.field__toggle:focus-visible {
    color: var(--navy);
}

.field__toggle svg {
    position: static;
    width: 1.2rem;
    height: 1.2rem;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.15rem 0 1.25rem;
    font-size: 0.92rem;
}

.login-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    cursor: pointer;
    font-weight: 500;
}

.login-row input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--navy);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.05rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--navy);
    color: var(--white);
}

.btn--primary:hover {
    background: #0a243d;
}

.btn--ghost {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
    font-weight: 600;
}

.btn--ghost:hover {
    background: #f3f6f9;
}

.btn svg {
    width: 1.05rem;
    height: 1.05rem;
}

.ms-mark {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.85rem;
    margin: 1.05rem 0;
    color: #8b97a4;
    font-size: 0.92rem;
}

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

.alert {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    line-height: 1.4;
}

.alert--err {
    background: #fef2f1;
    color: var(--danger);
    border: 1px solid #f5c2bc;
}

.alert--ok {
    background: #eef6ff;
    color: #1849a9;
    border: 1px solid #c9ddfb;
}

.panel__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    color: #8b97a4;
    font-size: 0.82rem;
}

.panel__secure {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.panel__secure svg {
    width: 0.95rem;
    height: 0.95rem;
}

.panel__legal {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.panel__legal a {
    color: #8b97a4;
}

.panel__legal span {
    color: #c5ced6;
}

.logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 4.6rem;
    height: 5.35rem;
    color: var(--navy);
}

.logo--light {
    color: var(--white);
}

.logo__house {
    width: 4.6rem;
    height: 5.35rem;
}

.logo__word {
    position: absolute;
    top: 2.05rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.92;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hub {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: #f3f5f7;
}

.hub__card {
    width: min(100%, 28rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.hub__card h1 {
    margin: 0.8rem 0 0.35rem;
    font-size: 1.6rem;
}

.hub__card p {
    margin: 0 0 1.4rem;
    color: var(--muted);
}

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

    .brand {
        min-height: 11.5rem;
        max-height: 13rem;
    }

    .brand__content {
        padding: 1.1rem 1.25rem 1rem;
    }

    .brand__copy,
    .brand__values {
        display: none;
    }

    .login__mark {
        display: none;
    }

    .panel {
        min-height: auto;
        padding: 0.85rem 1.2rem 1.2rem;
    }

    .panel__back {
        position: absolute;
        top: 1rem;
        right: 1.15rem;
    }

    .panel__main {
        padding-top: 2.4rem;
    }

    .panel__foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

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