/* Login / authentication pages */

.auth-page {
    min-height: 100vh;
    background: #070b12;
    color: #f5f7fb;
    overflow-x: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-grid {
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
}

.auth-orb {
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .16;
}

.auth-orb-one {
    top: -130px;
    left: -100px;
    background: #5e78ff;
}

.auth-orb-two {
    right: -130px;
    bottom: -150px;
    background: #a057ff;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.auth-brand-panel {
    padding: 46px 55px 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand,
.back-home {
    color: inherit;
    text-decoration: none;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
}

.auth-brand-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.11);
    font-size: 12px;
    font-weight: 800;
}

.auth-brand strong {
    display: block;
    font-size: 14px;
    line-height: 1.1;
}

.auth-brand small {
    display: block;
    margin-top: 4px;
    color: #7e889b;
    font-size: 10px;
}

.brand-message {
    max-width: 470px;
    margin-top: -25px;
}

.auth-kicker {
    color: #8f9aff;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10px;
    font-weight: 800;
}

.brand-message h1 {
    margin: 16px 0 17px;
    font-size: clamp(40px, 4.4vw, 61px);
    line-height: .99;
    letter-spacing: -.055em;
}

.brand-message h1 span {
    color: #8996ff;
}

.brand-message p {
    max-width: 430px;
    margin: 0;
    color: #8a94a7;
    font-size: 14px;
    line-height: 1.75;
}

.mini-points {
    display: grid;
    gap: 11px;
    margin-top: 28px;
}

.mini-points div {
    color: #9ca6b8;
    font-size: 12px;
}

.mini-points span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    border-radius: 7px;
    color: #8bd89a;
    background: rgba(120,213,138,.08);
    font-size: 10px;
    font-weight: 800;
}

.back-home {
    color: #7d879a;
    font-size: 11px;
}

.back-home:hover {
    color: #fff;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 0 45px 35px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 36px;
    border-radius: 22px;
    background: rgba(17,22,32,.82);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    backdrop-filter: blur(20px);
}

.mobile-brand {
    display: none;
}

.form-heading h2 {
    margin: 9px 0 6px;
    font-size: 30px;
    letter-spacing: -.035em;
}

.form-heading p {
    margin: 0 0 28px;
    color: #7e889a;
    font-size: 12px;
}

.auth-messages {
    margin-bottom: 14px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #aeb6c6;
    font-size: 11px;
    line-height: 1.55;
}

.alert-success {
    color: #9be0a8;
    background: rgba(120,213,138,.06);
    border-color: rgba(120,213,138,.13);
}

.alert-error {
    color: #f0a4a4;
    background: rgba(255,96,96,.055);
    border-color: rgba(255,96,96,.13);
}

.auth-alert ul {
    margin: 0;
    padding-left: 17px;
}

.auth-alert li + li {
    margin-top: 3px;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label,
.label-row label {
    color: #aeb7c7;
    font-size: 11px;
    font-weight: 700;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-row a {
    color: #8f9aff;
    text-decoration: none;
    font-size: 10px;
}

.label-row a:hover {
    color: #b1b8ff;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    min-height: 47px;
    padding: 0 68px 0 40px;
    box-sizing: border-box;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.09);
    outline: none;
    background: rgba(255,255,255,.035);
    color: #eef1f7;
    font: inherit;
    font-size: 12px;
    transition: border-color .2s ease, background .2s ease;
}

.input-wrap input::placeholder {
    color: #5f697b;
}

.input-wrap input:focus {
    border-color: rgba(137,150,255,.5);
    background: rgba(255,255,255,.05);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #707b8e;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #858fa2;
    font-size: 10px;
    cursor: pointer;
}

.password-toggle:hover {
    color: #b5bdcd;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #7e889b;
    font-size: 10px;
    cursor: pointer;
}

.check-row input {
    accent-color: #7e89ff;
}

.auth-submit {
    width: 100%;
    min-height: 49px;
    border: 0;
    font: inherit;
    margin-top: 2px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 19px;
    color: #5e6879;
    font-size: 9px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255,255,255,.07);
}

.auth-switch {
    margin: 0;
    text-align: center;
    color: #737e91;
    font-size: 11px;
}

.auth-switch a {
    color: #9aa4ff;
    text-decoration: none;
    font-weight: 700;
}

.auth-switch a:hover {
    color: #bcc2ff;
}

@media (max-width: 850px) {
    .auth-shell {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 28px));
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 28px 0;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 31px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .form-heading h2 {
        font-size: 27px;
    }
}
