* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: url('/images/bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 100px; /* Сдвигаем вниз от верха */
}

.container {
    width: 100%;
    max-width: 500px; /* Уже для форм */
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    text-align: center; /* Все по центру */
}

h1, h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.2em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    text-align: center; /* Текст по центру */
}

.auth-form input:focus {
    border-color: #007bff;
    outline: none;
}

.auth-form button {
    padding: 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: #0056b3;
}

.error {
    color: red;
    margin-bottom: 20px;
    font-size: 16px;
}

.choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 20px 40px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    flex: 1;
    min-width: 150px;
}

.btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Ссылки */
p {
    margin-top: 20px;
    font-size: 16px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Для панели управления */
.panel-content {
    text-align: center;
}

.panel-content h1 {
    color: #28a745;
}

.logout-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}