.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 32px 18px;
    background:
        radial-gradient(circle at 15% 15%, rgba(53, 220, 136, .13), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(18, 155, 89, .13), transparent 32%),
        linear-gradient(145deg, #030806 0%, #07100c 48%, #082116 100%);
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(53, 220, 136, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 220, 136, .04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(53, 220, 136, .25);
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        rgba(13, 32, 24, .96),
        rgba(5, 17, 11, .98)
    );
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .48),
        inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(20px);
    animation: authEnter .45s ease both;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(53, 220, 136, .75),
        transparent
    );
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(32, 81, 58, .58);
}

.auth-logo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #4aef9b, #159958);
    color: #021108;
    font-size: 27px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(53, 220, 136, .19);
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 20px;
}

.auth-brand span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.auth-eyebrow {
    margin: 0;
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.auth-heading {
    margin: 27px 0 23px;
}

.auth-heading h1 {
    margin: 0;
    font-size: clamp(27px, 5vw, 34px);
    line-height: 1.2;
}

.auth-heading p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-alert {
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 115, 115, .35);
    border-radius: 12px;
    background: rgba(255, 115, 115, .075);
    color: #ffdada;
    font-size: 12px;
}

.auth-alert span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 115, 115, .14);
    color: var(--red);
    font-weight: 900;
}

.auth-alert p {
    margin: 0;
}

.auth-alert.success {
    border-color: rgba(53, 220, 136, .35);
    background: rgba(53, 220, 136, .08);
    color: #c9f8dd;
}

.auth-alert.success span {
    background: rgba(53, 220, 136, .14);
    color: var(--green);
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field > label {
    color: #cfe7d9;
    font-size: 12px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap input {
    height: 50px;
    padding: 0 68px 0 43px;
    border-radius: 13px;
    border-color: rgba(53, 220, 136, .23);
    background: rgba(3, 14, 9, .78);
    transition:
        border-color .18s,
        box-shadow .18s,
        background .18s;
}

.auth-input-wrap input:hover {
    border-color: rgba(53, 220, 136, .42);
}

.auth-input-wrap input:focus {
    background: rgba(5, 20, 13, .96);
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(53, 220, 136, .09);
}

.auth-input-wrap input::placeholder {
    color: #557565;
}

.auth-input-icon {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6ea98a;
    font-size: 13px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    z-index: 2;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--panel2);
    color: var(--text);
    outline: none;
}

.auth-submit {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    padding: 12px 18px;
    border: 1px solid #44e896;
    border-radius: 13px;
    background: linear-gradient(135deg, #45e996, #2dca78);
    color: #021108;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(53, 220, 136, .16);
    transition:
        transform .18s,
        box-shadow .18s,
        filter .18s;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 38px rgba(53, 220, 136, .23);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .78;
}

.button-arrow {
    font-size: 19px;
}

.auth-submit.loading .button-arrow {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(2, 17, 8, .25);
    border-top-color: #021108;
    border-radius: 50%;
    font-size: 0;
    animation: authSpin .7s linear infinite;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(32, 81, 58, .58);
    color: #6f9c84;
    font-size: 10px;
}

.auth-footer span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-footer i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 13px rgba(53, 220, 136, .85);
}

.auth-copyright {
    margin: 17px 0 0;
    text-align: center;
    color: #557565;
    font-size: 10px;
}

@keyframes authEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {
    .auth-body {
        padding: 18px 12px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .auth-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}