:root {
    --bg-main: #000000;
    --bg-card: #0a0a0a;
    --border: #3a3a3a;  /* ← было #1a1a1a, сделал светлее */
    --border-hover: #4a4a4a;  /* ← было #2a2a2a */
    --primary: #ffffff;
    --text-main: #ffffff;
    --text-muted: #808080;
    --error: #ff4444;
    --input-bg: #111111;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Центрирование формы */
.auth-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Карточка формы */
.auth-form {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 2px solid var(--border);  /* ← было 1px, сделал 2px */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.02);
    transition: box-shadow 0.3s ease;
}

.auth-form:hover {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05);
}

/* Шапка с логотипом */
.auth-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 0.6s ease;
}

.auth-logo svg {
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
}

.auth-logo:hover svg {
    transform: translateY(-2px);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    animation: fadeInDown 0.6s ease 0.1s backwards;
}

/* Заголовок */
.auth-form h1 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    animation: fadeIn 0.6s ease 0.2s backwards;
}

/* Группа полей формы */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease 0.3s backwards;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 4px;
}

.form-group input {
    background: var(--input-bg);
    border: 2px solid var(--border);  /* ← было 1px, сделал 2px */
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-group input:hover {
    border-color: var(--border-hover);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #151515;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder {
    color: #404040;
}

/* Кнопка входа */
.btn-primary {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: fadeIn 0.6s ease 0.4s backwards;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Сообщение об ошибке */
.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    animation: shake 0.4s ease;
}

/* Ссылка на регистрацию */
.auth-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    animation: fadeIn 0.6s ease 0.5s backwards;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.auth-link a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .auth-form {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-logo svg {
        width: 56px;
        height: 56px;
    }
}