/* ============================================================
   authStyles.css — вход/регистрация, кнопка профиля, личный кабинет
   Стиль: ретро-аркада (Press Start 2P), как в style.css
   ============================================================ */

/* ---------- Кнопка профиля (фикс. верхний правый угол) ---------- */
.auth-chip {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 90000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 2, 20, 0.92);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.5), inset 0 0 8px rgba(255, 0, 255, 0.15);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
}
.auth-chip:hover {
    border-color: #fff;
    box-shadow: 0 0 18px #ff00ff, 0 0 30px #ff00ff;
}
.auth-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff66;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-chip-avatar-letter {
    background: #330066;
    color: #00ff66;
    font-size: 12px;
    text-shadow: 0 0 6px #00ff66;
}
.auth-chip-name {
    text-overflow: ellipsis;
    overflow: hidden;
    color: #00ff66;
    text-shadow: 0 0 6px #00ff66;
}

/* ---------- Модалка входа ---------- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 95000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
}
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 0, 12, 0.9);
    backdrop-filter: blur(3px);
}
.auth-modal-box {
    position: relative;
    width: min(420px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    background: #120224;
    border: 4px double #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), inset 0 0 20px rgba(255, 0, 255, 0.15);
    padding: 26px 24px;
    color: #fff;
    box-sizing: border-box;
}
.auth-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #ff0055;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 0 8px #ff0055;
}
.auth-modal-title {
    text-align: center;
    color: #ffcc00;
    font-size: 14px;
    text-shadow: 0 0 10px #ffcc00;
    margin-bottom: 18px;
}
.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.auth-tab {
    flex: 1;
    background: #1a0330;
    border: 2px solid #553388;
    color: #9977cc;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.12s;
}
.auth-tab.active {
    border-color: #ff00ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}
.auth-form label {
    display: block;
    color: #ff00ff;
    font-size: 7px;
    margin: 10px 0 4px;
    letter-spacing: 1px;
}
.auth-form input {
    width: 100%;
    box-sizing: border-box;
    background: #05000c;
    border: 2px solid #663399;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 10px 10px;
    outline: none;
}
.auth-form input:focus {
    border-color: #00ff66;
    box-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}
.auth-submit {
    width: 100%;
    margin-top: 16px;
    background: #00ff66;
    border: none;
    color: #000;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 0 12px #00ff66;
    transition: all 0.12s;
}
.auth-submit:hover { background: #fff; box-shadow: 0 0 20px #fff; }
.auth-submit:disabled { opacity: 0.6; cursor: wait; }
.auth-error {
    margin-top: 12px;
    background: #2a0008;
    border: 1px solid #ff0055;
    color: #ff8888;
    font-size: 7px;
    padding: 8px;
    line-height: 1.6;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    color: #664488;
    font-size: 7px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #332255;
}
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-social-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 10px;
    cursor: pointer;
    border: 2px solid;
    color: #fff;
    transition: all 0.12s;
}
.auth-google-btn {
    background: #0b1a2a;
    border-color: #4285F4;
}
.auth-google-btn:hover { box-shadow: 0 0 12px #4285F4; background: #0f2438; }
.auth-tg-btn {
    background: #0b1a2a;
    border-color: #229ED9;
}
.auth-tg-btn:hover { box-shadow: 0 0 12px #229ED9; background: #0f2438; }

/* Telegram box внутри модалки */
.auth-tg-box {
    margin-top: 12px;
    background: #0a0520;
    border: 2px solid #229ED9;
    padding: 14px;
    text-align: center;
}
.auth-tg-title { color: #229ED9; font-size: 8px; margin-bottom: 10px; }
.auth-tg-code {
    font-size: 24px;
    color: #00ff66;
    text-shadow: 0 0 12px #00ff66;
    letter-spacing: 6px;
    margin: 8px 0;
}
.auth-tg-hint { color: #9988bb; font-size: 7px; line-height: 1.7; margin-bottom: 8px; }
.auth-tg-link {
    display: inline-block;
    color: #229ED9;
    font-size: 8px;
    text-decoration: none;
    border: 1px solid #229ED9;
    padding: 6px 10px;
    margin: 4px 0 8px;
}
.auth-tg-link:hover { background: #229ED9; color: #000; }
.auth-tg-status { color: #ffcc00; font-size: 7px; margin-top: 6px; }

/* ---------- Личный кабинет (account.html) ---------- */
.account-page {
    background: #0b0214;
    min-height: 100vh;
    font-family: 'Press Start 2P', monospace;
    padding: 40px 16px 60px;
    box-sizing: border-box;
    color: #fff;
}
.account-header {
    max-width: 980px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.account-header h1 {
    font-size: 14px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 24px #ff00ff;
    margin: 0;
}
.account-back { color: #00ff66; font-size: 8px; text-decoration: none; }
.account-back:hover { color: #fff; }
.account-tabs {
    max-width: 980px;
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.account-tab-btn {
    background: #1a0330;
    border: 2px solid #553388;
    color: #9977cc;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.12s;
}
.account-tab-btn.active {
    border-color: #ff00ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}
.account-panel {
    max-width: 980px;
    margin: 0 auto;
    background: #130324;
    border: 3px solid #ff00ff;
    box-shadow: inset 0 0 15px rgba(255, 0, 255, 0.2);
    padding: 20px;
    box-sizing: border-box;
}
.account-panel h2 { color: #ffcc00; font-size: 10px; text-shadow: 0 0 8px #ffcc00; margin: 0 0 14px; }
.account-card {
    background: #000;
    border: 2px solid #553388;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 8px;
    flex-wrap: wrap;
}
.account-card .acc-label { color: #9977cc; font-size: 7px; flex: 0 0 130px; }
.account-card .acc-value { color: #00ff66; flex: 1; word-break: break-word; }
.account-input {
    background: #05000c;
    border: 2px solid #663399;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}
.account-btn {
    background: #00ff66;
    color: #000;
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff66;
    transition: all 0.12s;
}
.account-btn:hover { background: #fff; box-shadow: 0 0 18px #fff; }
.account-btn-danger { background: #ff0055; box-shadow: 0 0 10px #ff0055; }
.account-btn-danger:hover { background: #ff4477; }
.account-btn-purple { background: #ff00ff; box-shadow: 0 0 10px #ff00ff; color: #fff; }
.account-btn-sm { font-size: 6px; padding: 5px 8px; }
.account-avatar-lg {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid #ff00ff;
    box-shadow: 0 0 14px #ff00ff;
    object-fit: cover;
}
.account-msg {
    font-size: 7px;
    color: #00ff66;
    text-shadow: 0 0 6px #00ff66;
    margin-top: 10px;
}
.account-msg.error { color: #ff8888; text-shadow: 0 0 6px #ff0055; }
.account-empty { color: #664488; font-size: 8px; padding: 18px; text-align: center; }
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.account-stat {
    background: #000;
    border: 2px solid #00ff66;
    padding: 14px;
    text-align: center;
}
.account-stat .num { color: #ffcc00; font-size: 18px; text-shadow: 0 0 10px #ffcc00; }
.account-stat .lbl { color: #9977cc; font-size: 7px; margin-top: 8px; }
.account-table { width: 100%; border-collapse: collapse; font-size: 7px; }
.account-table th { color: #ff00ff; text-align: left; padding: 8px 6px; border-bottom: 2px solid #ff00ff; }
.account-table td { padding: 8px 6px; border-bottom: 1px solid #331144; color: #ccbbee; word-break: break-word; }
.account-table tr:hover td { background: rgba(255, 0, 255, 0.06); }
.account-link { color: #00ff66; text-decoration: none; }
.account-link:hover { color: #fff; }

/* ---------- Кнопка Войти/Профиль как виджет дашборда ---------- */
/* Внутренняя кнопка прозрачная и наследует внешность от рамки виджета,
   чтобы настройки виджета (фон, рамка, шрифт, цвет) реально работали. */
.auth-widget-btn {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 4px;
    border-radius: 0;
    transition: filter 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}
.auth-widget-btn:hover {
    filter: brightness(1.35);
    transform: scale(1.03);
}

/* Запасной плавающий чип на дашборде (когда в лейауте нет виджета auth) — слева сверху */
.auth-chip--fallback {
    top: 12px;
    left: 12px;
    right: auto;
}

