/* public/css/auth.css */

:root {
    --primary: #333333;
    --primary-dark: #1a1a1a;
    --secondary: #666666;
    --success: #4caf50;
    --info: #2196f3;
    --warning: #ff9800;
    --danger: #f44336;
    --light: #f8f8f8;
    --dark: #222222;
    --gray-100: #f5f5f5;
    --gray-200: #eaeaea;
    --gray-300: #e0e0e0;
    --gray-400: #cccccc;
    --gray-500: #aaaaaa;
    --gray-600: #888888;
    --gray-700: #666666;
    --gray-800: #444444;
    --gray-900: #222222;
}

.auth-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--gray-100);
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.auth-header a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.auth-header a:hover {
    color: var(--gray-900);
    border-bottom-color: var(--gray-800);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 13px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    color: var(--gray-800);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--gray-800);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.auth-form input::placeholder {
    color: var(--gray-500);
    font-size: 13px;
}

.auth-form .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.auth-form .checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: 1px solid var(--gray-400);
    border-radius: 3px;
}

.auth-form .checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    margin-top: 10px;
    background: var(--gray-800);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-form .btn:hover {
    background: var(--gray-900);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 0;
}

.auth-footer a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: var(--gray-900);
    border-bottom-color: var(--gray-800);
}

/* Уведомления */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid transparent;
}

.alert-info {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.alert-info i {
    margin-right: 8px;
    color: var(--gray-600);
}

/* Индикатор сложности пароля */
.password-strength {
    margin-top: 8px;
}

.password-strength .progress {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength .progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.password-strength .progress-bar.bg-danger {
    background: var(--danger);
}

.password-strength .progress-bar.bg-warning {
    background: var(--warning);
}

.password-strength .progress-bar.bg-info {
    background: var(--info);
}

.password-strength .progress-bar.bg-success {
    background: var(--success);
}

/* Сообщения об ошибках */
.error-feedback {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

.text-success {
    color: var(--success);
}

.text-muted {
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
}