body.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(99,102,241,.18), transparent 35%),
        #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
    perspective: 1200px;
}

.auth-logo {
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 22px;
}

.auth-card {
    position: relative;
    width: 100%;
    min-height: 520px;
    transform-style: preserve-3d;
    transition: transform .7s ease;
}

.auth-card.flipped {
    transform: rotateY(180deg);
}

.auth-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    background: rgba(30,41,59,.94);
    border: 1px solid #38bdf8;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(56,189,248,.28);
}

.auth-back {
    transform: rotateY(180deg);
}

.auth-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-sub {
    color: #94a3b8;
    margin-bottom: 22px;
}

.auth-face input {
    max-width: none;
    margin-bottom: 14px;
}

.auth-link {
    color: #38bdf8;
    cursor: pointer;
    text-decoration: underline;
}

.auth-msg-error {
    color: #f87171;
    margin-bottom: 14px;
}

.auth-msg-success {
    color: #22c55e;
    margin-bottom: 14px;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.auth-small {
    font-size: 14px;
    color: #94a3b8;
}

@media (max-width: 520px) {
    body.auth-body {
        padding: 14px;
        align-items: flex-start;
        padding-top: 28px;
    }

    .auth-logo {
        font-size: 28px;
    }

    .auth-card {
        min-height: 590px;
    }

    .auth-face {
        padding: 22px;
    }

    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-actions .btn {
        width: 100%;
        text-align: center;
    }
}