* {
    box-sizing: border-box;
}

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

.auth-body {
    min-height: 100vh;
    background: #07111f;
    color: #152238;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(430px, 1.05fr)
        minmax(460px, .95fr);
}

/* LEFT SIDE */

.auth-visual {
    position: relative;
    min-height: 100vh;
    padding: 34px 44px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 22% 18%,
            rgba(30, 111, 255, .26),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 78%,
            rgba(0, 196, 255, .12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #07152a 0%,
            #081c35 55%,
            #071426 100%
        );
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255,255,255,.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.05) 1px,
            transparent 1px
        );
    background-size: 46px 46px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.85),
            transparent 85%
        );
}

.auth-brand,
.auth-visual-content,
.auth-visual-footer {
    position: relative;
    z-index: 2;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand-logo,
.auth-mobile-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            135deg,
            #2684ff,
            #075ed0
        );
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    box-shadow:
        0 12px 28px
        rgba(16, 104, 239, .34);
}

.auth-brand-text strong {
    display: block;
    font-size: 16px;
}

.auth-brand-text small {
    display: block;
    margin-top: 2px;
    color: #94a9c5;
    font-size: 11px;
}

.auth-brand-text b {
    color: #4ea1ff;
}

.auth-visual-content {
    width: min(620px, 100%);
    margin: auto 0;
    padding: 80px 0;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #66a9ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.auth-visual-content h1 {
    max-width: 620px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(
        44px,
        5.4vw,
        72px
    );
    line-height: 1.02;
    letter-spacing: -.055em;
}

.auth-visual-content h1 span {
    display: block;
    color: #3991ff;
}

.auth-visual-content > p {
    max-width: 560px;
    margin: 24px 0 0;
    color: #9eb0c8;
    font-size: 15px;
    line-height: 1.8;
}

.auth-feature-grid {
    margin-top: 38px;
    display: grid;
    gap: 11px;
    max-width: 520px;
}

.auth-feature {
    min-height: 64px;
    padding: 12px 14px;
    border:
        1px solid
        rgba(255,255,255,.075);
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    background:
        rgba(255,255,255,.035);
    backdrop-filter: blur(10px);
}

.auth-feature > span {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background:
        rgba(52, 139, 255, .13);
    color: #68adff;
    font-size: 16px;
}

.auth-feature strong {
    display: block;
    color: #edf5ff;
    font-size: 12px;
}

.auth-feature small {
    display: block;
    margin-top: 3px;
    color: #738ba9;
    font-size: 10px;
}

.auth-visual-footer {
    margin-top: auto;
    color: #596f8a;
    font-size: 10px;
}

/* RIGHT SIDE */

.auth-panel {
    min-height: 100vh;
    padding: 52px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
}

.auth-card {
    width: min(440px, 100%);
}

.auth-card-head {
    margin-bottom: 30px;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 24px;
}

.auth-card-head h2 {
    margin: 0 0 9px;
    color: #122038;
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.auth-card-head p {
    margin: 0;
    color: #8390a4;
    font-size: 13px;
    line-height: 1.6;
}

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

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

.auth-field label {
    color: #344157;
    font-size: 12px;
    font-weight: 700;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border:
        1px solid
        #d8e0ea;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #152238;
    font-size: 13px;
    transition: .18s ease;
}

.auth-field input:focus {
    border-color: #2581ef;
    box-shadow:
        0 0 0 3px
        rgba(37, 129, 239, .09);
}

.auth-field input::placeholder {
    color: #a9b3c1;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 50px !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7c8a9f;
    cursor: pointer;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #69778b;
    font-size: 11px;
    cursor: pointer;
}

.auth-checkbox input {
    accent-color: #1677ff;
}

.auth-primary-button,
.auth-google-button {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.auth-primary-button {
    border: 1px solid #1677ff;
    background: #1677ff;
    color: #ffffff;
    box-shadow:
        0 9px 22px
        rgba(22, 119, 255, .18);
}

.auth-primary-button:hover {
    background: #0869eb;
}

.auth-divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e7ee;
}

.auth-divider span {
    position: relative;
    padding: 0 12px;
    background: #f7f9fc;
    color: #98a3b2;
    font-size: 10px;
}

.auth-google-button {
    border: 1px solid #d9e0e9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #314055;
}

.auth-google-button:hover {
    border-color: #bfcada;
    background: #fbfcfd;
}

.google-g {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #4285f4;
    font-size: 16px;
    font-weight: 900;
}

.auth-switch {
    margin: 23px 0 0;
    color: #7a8799;
    text-align: center;
    font-size: 11px;
}

.auth-switch a,
.auth-legal-links a {
    color: #1677ff;
    text-decoration: none;
    font-weight: 700;
}

.auth-switch a:hover,
.auth-legal-links a:hover {
    text-decoration: underline;
}

.auth-legal-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    color: #adb5c0;
    font-size: 10px;
}

.auth-validation-summary,
.auth-message {
    margin-bottom: 17px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.5;
}

.auth-validation-summary,
.auth-message-error {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.auth-field-error {
    min-height: 14px;
    color: #d62f4b;
    font-size: 10px;
}

/* RESPONSIVE */

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

    .auth-visual {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 38px 22px;
    }

    .auth-mobile-logo {
        display: grid;
    }
}

@media (max-width: 520px) {
    .auth-panel {
        align-items: flex-start;
        padding: 28px 18px 34px;
    }

    .auth-card-head h2 {
        font-size: 27px;
    }

    .auth-card {
        width: 100%;
    }
}
