.auth-body {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
}

.auth-body::before {
    width: 54rem;
    height: 54rem;
    top: -18rem;
    left: -20rem;
    background: radial-gradient(circle at center, rgba(106, 204, 111, 0.18), rgba(106, 204, 111, 0) 68%);
}

.auth-body::after {
    width: 48rem;
    height: 48rem;
    right: -16rem;
    bottom: -12rem;
    background: radial-gradient(circle at center, rgba(54, 201, 142, 0.14), rgba(54, 201, 142, 0) 70%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 28px;
}

.auth-shell__inner {
    max-width: 1240px;
    margin: 0 auto;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 52px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color-muted);
    font-weight: 600;
}

.auth-switch a {
    color: var(--color-primary-deep);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
    gap: 42px;
    align-items: start;
}

.auth-intro {
    padding: 42px 0 24px;
}

.auth-kicker,
.auth-panel__eyebrow {
    margin: 0 0 10px;
    color: var(--color-primary-deep);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-intro h1,
.auth-panel h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.04;
}

.auth-panel h2 {
    font-size: 1.75rem;
}

.auth-description {
    max-width: 38rem;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.auth-metric {
    padding: 18px;
    border-radius: 20px;
}

.auth-metric strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.5rem;
    line-height: 1;
}

.auth-metric span {
    display: block;
    color: var(--color-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.auth-highlights {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    max-width: 40rem;
}

.auth-highlights li {
    position: relative;
    padding-left: 24px;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-highlights li::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #98eea1 0%, #36c98e 100%);
    box-shadow: 0 0 0 6px rgba(106, 204, 111, 0.12);
}

.auth-panel {
    padding: 32px;
}

.auth-panel__header {
    margin-bottom: 24px;
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(224, 75, 80, 0.22);
    border-radius: 16px;
    background: rgba(224, 75, 80, 0.08);
    color: #9c3034;
}

.form-alert p {
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-field label {
    font-size: 0.875rem;
    font-weight: 700;
}

.auth-input,
.auth-select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.auth-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(17, 17, 17, 0.65) 50%),
        linear-gradient(135deg, rgba(17, 17, 17, 0.65) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.auth-input::placeholder {
    color: rgba(17, 17, 17, 0.42);
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: rgba(54, 201, 142, 0.6);
    box-shadow: 0 0 0 4px rgba(54, 201, 142, 0.14);
    background: #ffffff;
}

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

.auth-input-wrap .auth-input {
    padding-right: 72px;
}

.auth-input-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-width: 48px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--color-text);
    font-size: 0.8125rem;
    font-weight: 700;
}

.auth-field--error .auth-input,
.auth-field--error .auth-select {
    border-color: rgba(224, 75, 80, 0.38);
    background: rgba(255, 245, 245, 0.96);
}

.auth-field__errors,
.auth-field__help {
    color: var(--color-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.auth-field__errors {
    color: #b13d42;
}

.auth-field__errors p,
.auth-field__help {
    margin: 0;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-checkbox__input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary-deep);
}

.auth-password-guide {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(106, 204, 111, 0.08);
    border: 1px solid rgba(106, 204, 111, 0.16);
}

.auth-password-guide p {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 800;
}

.auth-password-guide ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-brand:focus-visible,
.auth-switch a:focus-visible,
.auth-input-toggle:focus-visible {
    outline: 2px solid rgba(106, 204, 111, 0.85);
    outline-offset: 3px;
}

.sidebar-logout-form {
    width: 100%;
}

.sidebar-logout {
    width: 100%;
    justify-content: flex-start;
    background: transparent;
}

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

    .auth-intro {
        padding-top: 0;
    }

    .auth-panel {
        max-width: 640px;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        padding: 20px 16px 28px;
    }

    .auth-topbar {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 32px;
    }

    .auth-intro h1 {
        font-size: 2.25rem;
    }

    .auth-metrics,
    .auth-form__grid {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 24px 20px;
    }
}
