* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(-45deg, #3a4a4f, #4f7a3b, #1C1F20, #181A1B);
    background-size: 400% 400%;
    animation: gradientBG 30s ease infinite;
    color: #ffffff;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.auth-container {
    background: rgba(42, 42, 42, 0.9);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.tab-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab-header div {
    width: 50%;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    background-color: #2A2D2E;
    color: #fff;
    border-bottom: 2px solid #2A2D2E;
    transition: background-color 0.3s, border-bottom 0.3s;
}

.tab-header .active {
    background-color: #1C1F20;
    border-bottom: 2px solid #ffcc00;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #45a049;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

/* Стили для ссылки "Вернуться на главную" */
.back-to-main {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #ffcc00;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
}

.back-to-main:hover {
    color: #ffd700;
}

/* Стили для кнопки Google */
.google-button {
    background-color: #4285F4;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.google-button:hover {
    background-color: #357ae8;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }
}

/* Стили для сообщений */
#message-container {
    margin-bottom: 15px;
}

.message {
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.message.error {
    background-color: rgba(229, 57, 53, 0.1);
    color: #e53935;
    border: 1px solid #e53935;
}

.message.success {
    background-color: rgba(67, 160, 71, 0.1);
    color: #43a047;
    border: 1px solid #43a047;
}

/* Анимация для сообщений */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    animation: fadeIn 0.3s ease-out;
}