body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #272727;
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Переключатель вкладок */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    flex: 1;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.tab.active {
    color: #14A76C;
    border-bottom: 2px solid #14A76C;
}

/* Формы */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #14A76C;
    box-shadow: 0 0 0 2px rgba(20, 167, 108, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #14A76C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0e8c58;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Сообщения об ошибках */
.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.alert.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.additional-links {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.additional-links a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dotted #666;
    margin: 0 10px;
}

.additional-links a:hover {
    color: #14A76C;
    border-bottom: 1px dotted #14A76C;
}

.error-message {
    color: #c62828;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Стиль для ссылки "Забыли пароль?" */
.forgot-password-link {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-password-link a {
    color: #666;
    text-decoration: none; /* Без подчеркивания */
    font-size: 14px;
}

.forgot-password-link a:hover {
    color: #14A76C; /* При наведении */
    text-decoration: underline; /* Опционально: подчеркивание при наведении */
}

/* Стили модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Полупрозрачный фон */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}

.modal-inner {
    position: relative;
    margin: 0;
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}