/* ========================================= */
/* AUTH MODULE STYLES                        */
/* ========================================= */

/* Модификаторы Body для режима авторизации */
body.auth-mode #app {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    background: var(--bg);
}

body.auth-mode #top-bar,
body.auth-mode #nav-bar {
    display: none !important;
}

/* Ссылки переключения и действия (Вход/Регистрация/Сброс) */
.auth-switch-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.link-action {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    padding: 5px;
}

    .link-action:hover {
        color: #d500f9;
        text-shadow: 0 0 10px rgba(145, 71, 255, 0.3);
    }

.emergency-reset {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    font-size: 10px;
    color: var(--text-sec);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s;
}

    .emergency-reset:hover {
        opacity: 1;
    }

/* AUTH SCREEN - FULLY RESTORED & NEW LAYOUT */
.auth-header-container {
    position: relative;
    width: 100%;
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: -40px;
}

.auth-logo-bg {
    position: absolute;
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    top: 0;
    z-index: 0;
    mix-blend-mode: multiply;
}

.auth-text-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 120px;
}

.auth-title {
    margin: 0;
    font-size: 48px;
    font-weight: 900;
    color: #000;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    line-height: 1.1;
    -webkit-text-stroke: 2px #fff;
    paint-order: stroke fill;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.auth-subtitle {
    margin: 5px 0 0 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Специфичные стили для карточки входа (#screen-auth) */
#screen-auth {
    background-color: #f7f7f8 !important;
}

    #screen-auth .card {
        max-width: 260px;
        width: 85%;
        padding: 15px 12px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        border-radius: 16px;
    }

    #screen-auth input {
        padding: 8px 10px;
        font-size: 13px;
        margin-bottom: 6px;
        border-radius: 8px;
        background: #fff;
    }

    #screen-auth .row-btns {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-top: 5px;
    }

        #screen-auth .row-btns .btn {
            flex: 1;
            padding: 8px;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
        }

    #screen-auth h3 {
        margin-bottom: 10px;
        padding-bottom: 8px;
        font-size: 13px;
    }

    #screen-auth .auth-switch-link {
        margin-top: 10px;
        margin-bottom: 2px;
        font-size: 12px;
        line-height: 1.2;
    }

        #screen-auth .auth-switch-link + div {
            margin-top: 2px !important;
            margin-bottom: 2px !important;
        }

    #screen-auth .btn-text {
        padding: 4px;
        font-size: 12px;
    }

    #screen-auth .emergency-reset {
        margin-top: 5px;
        font-size: 10px;
        padding: 5px;
    }

/* SVG иконка для кнопок соцсетей */
.auth-provider-icon {
    width: 18px;
    height: 18px;
    min-width: 18px; /* Чтобы не сплющило flexbox-ом */
    display: block;
}

/* Корректировка кнопки, если нужно */
#screen-auth .row-btns .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Отступ между иконкой и текстом */
}