.auth {
    display: flex;
    flex-direction: column;
    gap: 1em;
    position: relative;
    
    /* Используем переменные глассморфизма */
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Для поддержки Safari */
    border: 1px solid var(--border-glass);
    
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    
    /* Задаем цвет текста внутри блока */
    color: var(--text-main);
}

.social {
    display: flex;
    justify-content: center;
    gap: 2em;
}

.social__item {
    background: none;
    position: relative;
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
}

.social__item:hover {
    transform: scale(1.05); /* Легкое увеличение соцсетей при наведении */
}

.social__item > img {
    width: 100%;
    height: 100%;
}

input {
    width: inherit;
    height: 40px;
    padding: 10px;
    /* Если у инпутов нет своих стилей в другом файле, 
       лучше добавить привязку к теме здесь: */
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-main);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

.auth__sign-in {
    width: inherit;
    height: 40px;
    background-color: var(--accent-brand);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.auth__sign-in:hover {
    background-color: var(--accent-brand-hover);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo__image {
    width: 64px;
    height: 64px;
    align-items: center;
    margin-right: 15px;
    transition: filter 0.3s ease;
}

/* Если логотип черный, раскомментируй код ниже, 
   чтобы в темной теме он становился белым: */
/*
[data-theme="dark"] .logo__image {
    filter: invert(1);
}
*/

.logo__text {
    font-size: 20px;
    align-items: center;
    font-weight: bold;
}

.register-button {
    margin-top: 15px;
    text-align: center;
    cursor: pointer;
    color: var(--text-main); /* Меняем жесткий белый на переменную текста */
    transition: color 0.2s ease;
}

.register-button:hover {
    color: var(--accent-brand); /* При наведении текст будет становиться акцентным (красным) */
}

/* =========================================================
   ПОЛЯ ВВОДА В АВТОРИЗАЦИИ (Email, Пароль)
   ========================================================= */
.auth input[type="email"],
.auth input[type="password"] {
    width: 100%;
    margin-bottom: 16px; /* Воздух между полями */
    padding: 12px 16px;
    
    background-color: var(--bg-input);
    border: 1px solid var(--border-input) !important; /* Пробиваем глобальный border: none */
    color: var(--text-main);
    
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Красивое свечение при клике (фокусе) */
.auth input[type="email"]:focus,
.auth input[type="password"]:focus {
    border-color: var(--accent-brand) !important;
    box-shadow: 0 0 0 3px rgba(202, 80, 56, 0.15); /* Легкий оттенок твоего фирменного цвета */
}

/* =========================================================
   КНОПКА РЕГИСТРАЦИИ (Ссылка-переход)
   ========================================================= */
.register-button {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--accent-brand); /* Фирменный цвет ссылки */
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.register-button:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Позиционируем переключатель в правом верхнем углу */
.auth-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* На всякий случай чуть уменьшаем его, чтобы он смотрелся аккуратнее */
.auth-theme-toggle .theme-toggle-switch {
    transform: scale(0.9);
}

@media (max-width: 1020px) {
    .auth {
        padding-top: 50%;
        max-width: 100%;
        width: 100% !important;
        height: 100%;
        border-radius: 0; /* На мобилках часто красивее без скруглений, если на весь экран */
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
}