/* Общие стили для страниц аутентификации */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333333 0%, #00B7B7 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.auth-header {
    background: linear-gradient(135deg, #00B7B7 0%, #333333 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.auth-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.auth-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #00B7B7;
    box-shadow: 0 0 0 3px rgba(0, 183, 183, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.help-text {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00B7B7 0%, #333333 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 183, 183, 0.4);
}

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

.btn-secondary {
    background: #95a5a6;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.4);
}

.auth-footer {
    text-align: center;
    padding: 20px 40px 40px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.auth-footer p {
    margin: 0 0 10px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #00B7B7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #009999;
    text-decoration: underline;
}

/* Стили для ошибок формы */
.non-field-errors {
    background: #fee;
    border-left: 4px solid #e74c3c;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #c0392b;
    font-size: 14px;
}

/* Чекбокс политики конфиденциальности */
.privacy-policy-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

.privacy-policy-group:focus-within {
    border-color: #00B7B7;
}

.privacy-policy-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00B7B7;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-policy-group label {
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.privacy-policy-group label a {
    color: #00B7B7;
    font-weight: 600;
    text-decoration: none;
}

.privacy-policy-group label a:hover {
    text-decoration: underline;
}

.btn-auth:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-body {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 24px;
    }
}