/* Стиль страниц авторизации */
:root {
    --glass: rgba(12, 18, 34, 0.72);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #d0b483;
    --accent-2: #7cd2ff;
    --mist: #e7edf5;
}

.auth-layout {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 180px);
    padding: clamp(20px, 6vw, 48px) 0 120px;
}

.auth-card {
    width: min(520px, 100%);
    padding: clamp(22px, 5vw, 32px);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(7, 12, 26, 0.88), rgba(10, 18, 36, 0.75));
    border: 1px solid var(--card-border);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.auth-card::before,
.auth-card::after {
    content: "";
    position: absolute;
    filter: blur(60px);
    opacity: 0.8;
    pointer-events: none;
}

.auth-card::before {
    inset: -20% 50% auto auto;
    background: radial-gradient(circle, rgba(198, 177, 255, 0.25), transparent 45%);
}

.auth-card::after {
    inset: auto auto -30% -10%;
    background: radial-gradient(circle, rgba(135, 240, 255, 0.25), transparent 46%);
}

.auth-card__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--mist);
}

.auth-badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, #f7e3b9 100%);
    box-shadow: 0 0 0 6px rgba(208, 180, 131, 0.18);
}

.auth-title {
    font-size: clamp(26px, 3vw, 32px);
    margin: 0;
    line-height: 1.1;
}

.auth-subtitle {
    color: rgba(231, 237, 245, 0.82);
    margin: 0;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.auth-label {
    font-size: 14px;
    color: rgba(231, 237, 245, 0.78);
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px 12px 10px 14px;
}

.input-prefix {
    color: rgba(231, 237, 245, 0.65);
    font-weight: 600;
    font-size: 14px;
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 6px 4px;
}

.auth-input::placeholder {
    color: rgba(231, 237, 245, 0.5);
}

.auth-helper {
    font-size: 13px;
    color: rgba(231, 237, 245, 0.7);
    margin: 0;
}

.auth-button {
    margin-top: 4px;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: linear-gradient(135deg, #f4e2c4, #b88a44);
    color: #0b1224;
    box-shadow: 0 18px 36px rgba(184, 138, 68, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(184, 138, 68, 0.42);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: rgba(231, 237, 245, 0.78);
}

.auth-links a {
    color: #f6e6c8;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-sidenote {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(231, 237, 245, 0.74);
    font-size: 13px;
    line-height: 1.5;
}

.auth-errors {
    background: rgba(255, 105, 97, 0.1);
    border: 1px solid rgba(255, 105, 97, 0.5);
    color: #ffb1ad;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 560px) {
    .auth-card {
        border-radius: 18px;
        padding: 18px 16px;
    }

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