.auth-page {
    min-height: calc(100vh - var(--topbar-h) - var(--footbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(18, 26, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.auth-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #e6edf3;
}

.auth-subtitle {
    margin: 0 0 20px;
    color: #9fb0bf;
    font-size: 14px;
    line-height: 1.5;
}

.auth-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-message {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-message--success {
    background: rgba(59, 228, 119, 0.12);
    border: 1px solid rgba(59, 228, 119, 0.25);
    color: #baf5cb;
}

.auth-message--error {
    background: rgba(255, 93, 93, 0.12);
    border: 1px solid rgba(255, 93, 93, 0.25);
    color: #ffd1d1;
}

.auth-message--warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #ffe8a3;
}

.auth-message--info {
    background: rgba(90, 167, 255, 0.12);
    border: 1px solid rgba(90, 167, 255, 0.25);
    color: #cfe6ff;
}

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

.auth-form p {
    margin: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    color: #9fb0bf;
    font-size: 14px;
}

.auth-input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: #e6edf3;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-form input::placeholder {
    color: rgba(159, 176, 191, 0.75);
}

.auth-form input:focus {
    border-color: rgba(90, 167, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.auth-input:focus,
.auth-form input:focus {
    border-color: rgba(90, 167, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.auth-form ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #ffb0b0;
}

.auth-actions {
    margin-top: 4px;
}

.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(90, 167, 255, 0.45);
    background: rgba(90, 167, 255, 0.12);
    color: #e6edf3;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
    text-decoration: none;
}

.auth-btn:hover {
    filter: brightness(1.06);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-link-row {
    margin-top: 18px;
    color: #9fb0bf;
    font-size: 14px;
    text-align: center;
}

.auth-link-row a {
    color: #5aa7ff;
    text-decoration: none;
}

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

/* Небольшая адаптация */
@media (max-width: 480px) {
    .auth-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 24px;
    }
}

.auth-page--authflow {
    align-items: flex-start;
    padding-top: 32px;
}

.auth-card--authflow {
    max-width: 560px;
}

.auth-form-group {
    display: grid;
    gap: 6px;
}

.auth-form-group input {
    width: 100%;
}

.auth-form-help,
.helptext {
    margin-top: 6px;
    color: #9fb0bf;
    font-size: 12px;
    line-height: 1.4;
}

.auth-form ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #ffb0b0;
}

.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(90, 167, 255, 0.45);
    background: rgba(90, 167, 255, 0.12);
    color: #e6edf3;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
    text-decoration: none;
}

.auth-btn:hover {
    filter: brightness(1.06);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-link-row {
    margin-top: 18px;
    color: #9fb0bf;
    font-size: 14px;
    text-align: center;
}

.auth-link-row a {
    color: #5aa7ff;
    text-decoration: none;
}

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

.auth-btn--danger {
    border-color: rgba(255, 93, 93, 0.45);
    background: rgba(255, 93, 93, 0.12);
    color: #ffd1d1;
}

.auth-btn--danger:hover {
    filter: brightness(1.06);
}

.profile-section,
.profile-danger-zone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section__title,
.profile-danger-zone__title {
    margin: 0 0 16px;
    font-size: 18px;
    color: #e6edf3;
}

.profile-danger-zone__title {
    color: #ffd1d1;
}

.profile-danger-zone__text {
    margin: 0 0 16px;
    color: #9fb0bf;
    font-size: 14px;
    line-height: 1.5;
}