/* Общие стили */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1c2526 100%);
    background-image: linear-gradient(45deg, rgba(28, 37, 38, 0.2) 25%, transparent 25%, transparent 50%, rgba(28, 37, 38, 0.2) 50%, rgba(28, 37, 38, 0.2) 75%, transparent 75%, transparent);
    background-size: 4px 4px; /* Subtle carbon fiber texture */
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 1rem;
}

/* Контейнер формы */
.login-container {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

/* Заголовок */
h2 {
    text-align: center;
    color: #ff4d4d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 77, 77, 0.5);
}

/* Поля ввода */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: rgba(20, 20, 20, 0.8);
    color: #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

/* Кнопка */
button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(45deg, #d32f2f, #ff6659);
    color: #0a0a0a;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background: linear-gradient(45deg, #b71c1c, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.5);
}

button:active {
    transform: translateY(0);
}

/* Ссылка выхода */
a {
    color: #ff4d4d;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 1rem;
    transition: color 0.3s;
}

a:hover {
    color: #ff9999;
    text-decoration: underline;
}

/* Сообщения об ошибках/уведомления */
.alert {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.alert-error {
    color: #d32f2f;
    text-shadow: 0 0 5px rgba(211, 47, 47, 0.5);
}

.alert-success {
    color: #00e676;
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.5);
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 0 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }
}