/* Страницы авторизации и регистрации */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #B59C98 0%, #91657E 100%);
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(141,177,217,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Шапка */
.auth-header {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-header-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-logo img {
    height: 40px;
    width: auto;
}

.auth-logo .logo-text {
    font-family: "Poiret One", cursive;
    font-size: 2rem;
    color: white;
    letter-spacing: 3px;
}

/* Контент */
.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Карточка формы */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 36px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-header h1 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-card-header p {
    font-size: 14px;
    color: #888;
}

/* Форма */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #2c3e50;
    background: white;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #8DB1D9;
    box-shadow: 0 0 0 3px rgba(141,177,217,0.1);
}

.auth-form input::placeholder {
    color: #bbb;
}

/* Чекбокс */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 24px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #91657E;
    color: #7a7a7a;
    margin-top: 24px;
		text-align: center;
}

.auth-note {
    font-size: 13px;
    line-height: 1.6;
    color: #7a7a7a;
    margin-top: 24px;
		text-align: center;
}

/* Чеклист пароля */
.password-checklist {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 18px;
    display: grid;
    gap: 8px;
}
.password-checklist .check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #7a7a7a;
    padding: 6px 8px;
    border-radius: 8px;
}
.password-checklist .check-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
    color: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    font-weight: 700;
}
.password-checklist .check-item.valid {
    background: rgba(145,101,126,0.06);
    color: #91657E;
}
.password-checklist .check-item.valid .check-icon {
    background: linear-gradient(135deg, #B59C98, #91657E);
    color: #111;
    border: none;
}

.auth-submit-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.form-checkbox span {
    font-size: 14px;
    color: #666;
}

/* Ошибки */
.auth-errors {
    margin-bottom: 16px;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    font-size: 13px;
    color: #e74c3c;
    margin-bottom: 8px;
}

.auth-error::before {
    content: '⚠';
    font-size: 14px;
}

/* Кнопка submit с wave */
.auth-submit-wrapper {
    position: relative;
    width: 100%;
    height: 56px;
    margin-bottom: 20px;
}

.auth-submit-wrapper .wave-cta-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.auth-submit-wrapper .wave-cta-path {
    fill: url(#authGradient);
    filter: blur(0.5px);
    transition: all 0.3s ease;
}

.auth-submit-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    font-family: inherit;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

/* Альтернативные действия */
.auth-alt {
    text-align: center;
    font-size: 14px;
    color: #888;
}

.auth-alt a {
    color: #91657E;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-alt a:hover {
    color: #B59C98;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .auth-header {
        padding: 16px;
    }

    .auth-logo img {
        height: 32px;
    }

    .auth-logo .logo-text {
        font-size: 1.6rem;
    }

    .auth-content {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        padding: 28px 24px 24px;
        border-radius: 16px;
    }

    .auth-card-header h1 {
        font-size: 1.4em;
    }

    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="text"] {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
