* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; 
}

/* Фон с паттерном */
body {
    background-color: #F0EDE9;
    /* ЗАМЕНИ ИМЯ ФАЙЛА НА СВОЕ */
    background-image: url('../public/touch.png'); 
    background-size: 60px;
    background-repeat: repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-wrapper {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Мобильная адаптация для auth */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 16px 12px;
    }
    
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .auth-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .auth-header p {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .auth-tabs {
        margin-bottom: 24px;
    }
    
    .tab-btn {
        padding: 12px 4px;
        font-size: 12px;
        letter-spacing: -0.2px;
    }
    
    .input-group {
        margin-bottom: 16px;
    }
    
    .input-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .input-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px 24px;
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .terms-text {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .btn-google {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .back-link {
        font-size: 13px;
        margin-top: 16px;
    }
}

.auth-card {
    background: rgba(158, 132, 117, 0.5); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(74, 26, 15, 0.1);
    text-align: center;
}

/* Заголовки */
.auth-header h2 {
    color: #4A1A0F;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-header p {
    color: #4A1A0F;
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Переключатель вкладок */
.auth-tabs {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    padding: 4px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4A1A0F;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.tab-btn.active {
    background: #D5C9BD;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #4A1A0F;
}

/* Формы */
.auth-form {
    display: none;
    text-align: left;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Поля ввода */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #4A1A0F;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    color: #4A1A0F;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: #4A1A0F;
}

/* Основная кнопка */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #413028;
    color: #D9CFC5;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #3E2B23;
    transform: translateY(-2px);
}

/* Текст условий */
.terms-text {
    font-size: 11px;
    color: #4A1A0F;
    opacity: 0.6;
    margin: 20px 0;
    line-height: 1.4;
}

/* Разделитель */
.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(74, 26, 15, 0.2);
}

.divider span {
    position: relative;
    background: #E1D6CA; 
    padding: 0 10px;
    color: #4A1A0F;
    font-size: 12px;
    opacity: 0.6;
}

/* Кнопка Google */
.btn-google {
    width: 100%;
    padding: 14px;
    background: #D9CFC5;
    border: 0px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #413028;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-google:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

/* Ссылка "Вернуться" */
.back-link {
    display: inline-block;
    position: relative;
    z-index: 10;
    color: #4A1A0F;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}