/* auth.css - Стили для страниц входа и регистрации в стиле жидкого стекла */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-header i {
    font-size: 70px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auth-title {
    font-size: 32px;
    color: #1a2b4c;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #2c3e5c;
    font-size: 15px;
    opacity: 0.8;
}

/* Форма */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #1a2b4c;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
}

.form-group label i {
    color: rgba(26, 43, 76, 0.7);
    font-size: 16px;
}

.form-group input {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s;
    color: #1a2b4c;
}

.form-group input::placeholder {
    color: rgba(26, 43, 76, 0.4);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1a2b4c;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #2c3e5c;
}

.form-group.checkbox a {
    color: #1a2b4c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.form-group.checkbox a:hover {
    border-bottom-color: #1a2b4c;
}

/* Кнопка отправки */
.btn-submit {
    padding: 16px 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: #1a2b4c;
}

.btn-submit:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.btn-submit i {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Ссылки */
.auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-link {
    color: #1a2b4c;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.auth-link i {
    font-size: 14px;
}

/* Алерты */
.alert {
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.alert i {
    font-size: 18px;
}

/* Верификация */
.verify-code-input {
    text-align: center;
    font-size: 28px;
    letter-spacing: 12px;
    font-family: monospace;
    font-weight: 600;
}

.verify-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: #1a2b4c;
    border: 1px solid rgba(255,255,255,0.3);
}

.verify-info i {
    color: #1a2b4c;
    margin-right: 8px;
}

.verify-info strong {
    color: #1a2b4c;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-page {
        padding: 100px 0 40px;
    }
    
    .auth-card {
        padding: 40px 25px;
    }
    
    .auth-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header i {
        font-size: 60px;
    }
    
    .form-group input {
        padding: 14px 18px;
    }
    
    .btn-submit {
        padding: 14px 25px;
    }
    
    .verify-code-input {
        font-size: 24px;
        letter-spacing: 8px;
    }
}