/* Вход / регистрация — отдельный файл (подключается на страницах auth). */

body.page-auth {
    min-height: 100vh;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 1.25rem 0.85rem 2rem;
    box-sizing: border-box;
}

.auth-page .mein-container.user-app-card.auth-card {
    max-width: min(420px, calc(100dvw - 20px)) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.auth-page .mein-container.user-app-card.auth-card--register {
    max-width: min(440px, calc(100dvw - 20px)) !important;
}

.auth-card__head {
    margin-bottom: 1.1rem;
    text-align: center;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.auth-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #f8fafc;
    background: none;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field__label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.82);
    background: none;
}

.auth-card .auth-input,
.auth-card .form-control {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .auth-input::placeholder,
.auth-card .form-control::placeholder {
    color: rgba(248, 250, 252, 0.38) !important;
}

.auth-card .auth-input:focus,
.auth-card .form-control:focus {
    outline: none !important;
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(251, 202, 31, 0.55) !important;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(251, 202, 31, 0.14) !important;
}

.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
.auth-card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #252b2f inset !important;
    box-shadow: 0 0 0 1000px #252b2f inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc;
    transition: background-color 99999s ease-out 0s;
}

.auth-field--error .auth-input,
.auth-field--error .form-control {
    border-color: rgba(248, 113, 113, 0.65) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.auth-field__error {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #fecaca;
}

.auth-field__hint {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 400;
    color: rgba(248, 250, 252, 0.55);
}

.auth-form__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.35rem;
}

.auth-form__submit {
    min-width: 11rem;
}

.auth-card__footer {
    margin-top: 1rem;
    text-align: center;
}

.auth-card__footer-line {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.72);
}

.auth-card__link {
    color: rgba(248, 250, 252, 0.88);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-card__link:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-card__link--accent {
    color: #fbca1f;
    font-weight: 700;
}

.auth-card__link--accent:hover {
    color: #ffe066;
}

.auth-card .auth-social-block {
    margin-top: 0.65rem;
}

.auth-card .social-login {
    max-width: none;
}

.auth-card .social-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-card .social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 202, 31, 0.35);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.auth-card .social-btn.google,
.auth-card .social-btn.yandex {
    color: #f8fafc;
}

.auth-card .social-btn.google:hover,
.auth-card .social-btn.yandex:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .auth-page {
        min-height: calc(100vh - 64px);
        padding: 0.85rem 0.65rem 1.5rem;
    }
}
