:root {
    --auth-background: #050816;
    --auth-surface: #09090F;
    --auth-card: #13131E;
    --auth-card-soft: #1C1C2A;
    --auth-border: rgba(255, 255, 255, .10);
    --auth-primary: #00E87A;
    --auth-primary-hover: #5CFFAD;
    --auth-primary-foreground: #09090F;
    --auth-accent: #7C3AED;
    --auth-text: #F0F0F8;
    --auth-secondary: #D8D8E8;
    --auth-muted: #B8B8CE;
    --auth-ring: rgba(0, 232, 122, .28);
}

.ws-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 76% 18%, rgba(0, 232, 122, .16), transparent 28%),
        radial-gradient(circle at 12% 82%, rgba(124, 58, 237, .18), transparent 30%),
        linear-gradient(135deg, #09090F 0%, #13131E 54%, #09090F 100%);
}

.ws-auth-shell,
.ws-auth-grid {
    min-height: 100vh;
}

.ws-auth-grid {
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr);
}

.ws-auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 48px;
    border-right: 1px solid var(--auth-border);
    background:
        linear-gradient(160deg, rgba(19, 19, 30, .88), rgba(9, 9, 15, .96)),
        var(--auth-surface);
}

.ws-auth-brand,
.ws-auth-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ws-auth-brand {
    color: var(--auth-text);
}

.ws-auth-brand span:last-child,
.ws-auth-card-header div {
    display: grid;
    gap: 2px;
}

.ws-auth-brand small,
.ws-auth-card p,
.ws-auth-side-copy p,
.ws-auth-switch,
.ws-auth-options,
.ws-auth-options a {
    color: var(--auth-secondary);
}

.ws-auth-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border: 1px solid rgba(0, 232, 122, .32);
    border-radius: 8px;
    color: var(--auth-primary-foreground);
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
    box-shadow: 0 0 28px rgba(0, 232, 122, .18);
    font-weight: 800;
}

.ws-auth-mark-small {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.ws-auth-kicker {
    color: var(--auth-primary-hover);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ws-auth-side-copy {
    max-width: 580px;
}

.ws-auth-side-copy h1 {
    margin: 16px 0;
    color: var(--auth-text);
    font-size: 3.7rem;
    line-height: 1;
    letter-spacing: 0;
}

.ws-auth-side-copy p {
    max-width: 520px;
    font-size: 1.06rem;
}

.ws-auth-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
}

.ws-auth-module-grid span {
    padding: 14px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-card-soft);
    color: var(--auth-secondary);
    font-weight: 700;
}

.ws-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.ws-auth-card {
    width: min(100%, 470px);
    padding: 30px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: rgba(19, 19, 30, .94);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.ws-auth-card-header {
    margin-bottom: 24px;
}

.ws-auth-card h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 1.8rem;
}

.ws-auth-card p {
    margin: 0;
}

.ws-auth-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: rgba(148, 163, 184, .08);
    color: #E2E8F0;
}

.ws-auth-alert-danger {
    border-color: rgba(239, 68, 68, .32);
    background: rgba(220, 38, 38, .12);
    color: #FECACA;
}

.ws-auth-alert-success {
    border-color: rgba(34, 197, 94, .32);
    background: rgba(22, 163, 74, .12);
    color: #BBF7D0;
}

.ws-auth-alert-warning {
    border-color: rgba(245, 158, 11, .32);
    background: rgba(245, 158, 11, .12);
    color: #FDE68A;
}

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

.ws-field {
    display: grid;
    gap: 8px;
    color: #E2E8F0;
    font-size: .92rem;
    font-weight: 700;
}

.ws-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    outline: 0;
    background: var(--auth-card-soft);
    color: #FFFFFF;
    caret-color: #FFFFFF;
}

.ws-field input:focus {
    border-color: var(--auth-primary);
    background: var(--auth-card-soft);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--auth-ring);
}

.ws-field input::placeholder {
    color: var(--auth-muted);
    opacity: .85;
}

.ws-field input:-webkit-autofill,
.ws-field input:-webkit-autofill:hover,
.ws-field input:-webkit-autofill:focus {
    border-color: var(--auth-primary);
    -webkit-text-fill-color: #FFFFFF;
    box-shadow: 0 0 0 1000px #1C1C2A inset, 0 0 0 4px var(--auth-ring);
    caret-color: #FFFFFF;
    transition: background-color 9999s ease-out;
}

.ws-field small {
    color: #FCA5A5;
    font-weight: 600;
}

.ws-profile-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
}

.ws-profile-choice legend {
    grid-column: 1 / -1;
    margin-bottom: 0;
    color: #F8FAFC;
    font-size: .92rem;
    font-weight: 800;
}

.ws-profile-choice label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 74px;
    padding: 10px;
    border: 1px solid rgba(203, 213, 225, .28);
    border-radius: 8px;
    background: var(--auth-card-soft);
    color: #E2E8F0;
    cursor: pointer;
}

.ws-profile-choice label:has(input:checked) {
    border-color: var(--auth-primary);
    background: rgba(0, 232, 122, .10);
    box-shadow: 0 0 0 3px var(--auth-ring);
}

.ws-profile-choice input {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    accent-color: var(--auth-primary);
}

.ws-profile-choice strong {
    display: block;
    color: var(--auth-text);
    font-size: .86rem;
    line-height: 1.2;
}

.ws-profile-choice small {
    display: block;
    margin-top: 3px;
    color: #D5DFEA;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.25;
}

.ws-password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-card-soft);
}

.ws-password-control input {
    border: 0;
    box-shadow: none;
}

.ws-password-control button {
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    color: var(--auth-primary-hover);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.ws-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .92rem;
}

.ws-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ws-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
}

.ws-auth-options a:hover,
.ws-auth-switch a:hover {
    color: var(--auth-primary-hover);
}

.ws-auth-submit,
.ws-social-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font-weight: 800;
}

.ws-auth-submit {
    position: relative;
    border: 0;
    color: var(--auth-primary-foreground);
    background: var(--auth-primary);
    cursor: pointer;
}

.ws-auth-submit:hover {
    background: var(--auth-primary-hover);
}

.ws-auth-submit.is-loading {
    pointer-events: none;
    opacity: .82;
}

.ws-auth-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .36);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ws-auth-spin .8s linear infinite;
}

.ws-auth-submit.is-loading .ws-auth-spinner {
    display: inline-block;
}

.ws-social-button {
    margin-bottom: 18px;
    border: 1px solid var(--auth-border);
    color: var(--auth-text);
    background: var(--auth-card-soft);
}

.ws-social-button span {
    color: var(--auth-primary-hover);
}

.ws-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--auth-secondary);
    font-size: .82rem;
}

.ws-auth-divider::before,
.ws-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--auth-border);
}

.ws-auth-switch {
    margin-top: 22px;
    text-align: center;
}

.ws-auth-switch a {
    color: var(--auth-primary-hover);
    font-weight: 800;
}

@keyframes ws-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

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

    .ws-profile-choice {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-auth-side {
        min-height: auto;
        padding: 28px 22px;
        border-right: 0;
        border-bottom: 1px solid var(--auth-border);
    }

    .ws-auth-side-copy h1 {
        font-size: 2.4rem;
    }

    .ws-auth-main {
        align-items: flex-start;
        padding: 24px 16px 40px;
    }
}

@media (max-width: 560px) {
    .ws-auth-side-copy h1 {
        font-size: 2rem;
    }

    .ws-auth-module-grid {
        grid-template-columns: 1fr;
    }

    .ws-auth-card {
        padding: 22px;
    }

    .ws-auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .ws-profile-choice {
        grid-template-columns: 1fr;
    }

    .ws-profile-choice label {
        min-height: 58px;
    }
}
