/* ATLAS — Страница авторизации */

/* === Фон === */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
    background-image: radial-gradient(var(--border) 0.5px, transparent 0.5px);
    background-size: 32px 32px;
}

/* === Контейнер === */

.auth-container {
    max-width: 440px;
    width: 100%;
    text-align: center;
    z-index: 2;
    animation: authAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* === Логотип === */

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

.auth-logo {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    display: inline-block;
}

.auth-logo:hover {
    letter-spacing: 12px;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--accent-border));
}

/* === Форма === */

.auth-form {
    padding: 32px;
    text-align: left;
}

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

.auth-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* === Переключатель тем === */

.auth-theme-wrapper {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.auth-theme-picker {
    position: relative;
}

.auth-theme-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

/* Иконка кнопки темы */
.auth-theme-btn svg {
    color: var(--accent);
}

.auth-theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.auth-theme-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.auth-theme-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.auth-theme-option {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: all var(--transition-base);
    font-family: inherit;
}

.auth-theme-option:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.auth-theme-option.active {
    background: var(--accent-bg);
    color: var(--accent);
}

.theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}
