/* ===================================================================
   АВТОРИЗАЦИЯ: общие стили модалок входа и регистрации
   (классы ax-* — вход, rx-* — регистрация; визуал единый)
   =================================================================== */

@keyframes ax-shimmer { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes ax-pulse-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ax-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes ax-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rx-check-pop { 0% { transform: scale(0) rotate(-45deg); } 60% { transform: scale(1.2) rotate(0deg); } 100% { transform: scale(1) rotate(0deg); } }

/* Панель */
.ax-panel, .rx-panel {
    background: linear-gradient(175deg, rgba(30,33,48,0.78), rgba(22,25,38,0.84) 50%, rgba(18,20,32,0.9));
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,0.65), 0 0 80px -20px rgba(245,158,11,0.07), inset 0 1px 0 rgba(255,255,255,0.08);
}
.ax-panel::before, .rx-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; z-index: 10;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, transparent 5%, rgba(245,158,11,0.5) 30%, rgba(255,255,255,0.2) 50%, rgba(245,158,11,0.5) 70%, transparent 95%);
}
.ax-grid, .rx-grid {
    background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Поля: спокойные «коробки» с янтарным фокусом */
.ax-field, .rx-field {
    width: 100%; color: #fff; font-size: 14px; outline: none;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 13px 14px 13px 44px;
    min-height: 46px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.ax-field:focus, .rx-field:focus {
    border-color: rgba(245,158,11,0.55);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.10);
}
.ax-field::placeholder, .rx-field::placeholder { color: rgba(255,255,255,0.22); }
.ax-field-icon, .rx-field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.25); transition: color .25s ease; pointer-events: none;
}
.ax-field-wrap:focus-within .ax-field-icon,
.rx-field-wrap:focus-within .rx-field-icon { color: #f59e0b; }

/* Главная кнопка */
.ax-btn, .rx-btn {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #fbbf24, #f59e0b 60%, #d97706);
    box-shadow: 0 8px 28px rgba(245,158,11,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
}
.ax-btn::after, .rx-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: ax-shimmer 4s ease infinite;
}
.ax-btn:hover:not(:disabled), .rx-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245,158,11,0.4);
    filter: brightness(1.06);
}
.ax-btn:active:not(:disabled), .rx-btn:active:not(:disabled) { transform: scale(.98); }
.ax-btn:disabled, .rx-btn:disabled {
    opacity: .25; cursor: not-allowed; filter: grayscale(.5); transform: none; box-shadow: none;
}

/* Соцкнопки: пилюли с подписью */
.ax-social, .rx-social {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 12px;
    font-size: 12.5px; font-weight: 700; color: #d1d5db; text-decoration: none;
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background .25s ease, border-color .25s ease, transform .18s ease;
}
.ax-social:hover, .rx-social:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-2px);
    color: #fff;
}
.ax-social:active, .rx-social:active { transform: scale(.97); }

.ax-glass, .rx-glass {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.07);
}
.ax-tag, .rx-tag { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.ax-dot, .rx-dot { width: 6px; height: 6px; border-radius: 50%; animation: ax-pulse-dot 2s infinite ease; }
.ax-divider, .rx-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }

/* Эмблема */
.ax-emblem, .rx-emblem {
    position: relative; width: 68px; height: 68px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.03));
    border: 1px solid rgba(245,158,11,0.2);
    box-shadow: 0 0 32px -8px rgba(245,158,11,0.25);
    animation: ax-float 6s ease infinite;
}
.ax-emblem::after, .rx-emblem::after {
    content: ''; position: absolute; inset: -7px; border-radius: 50%;
    border: 1px dashed rgba(245,158,11,0.15);
    animation: ax-orbit 20s linear infinite;
}
.ax-stripe, .rx-stripe { border-left: 3px solid; padding-left: 14px; }

/* Валюта (регистрация) */
.rx-currency-chip {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all .3s; cursor: pointer;
}
.rx-currency-chip:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.rx-currency-chip.active {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.3);
    box-shadow: 0 0 20px rgba(245,158,11,0.08);
}

/* Чекбокс (регистрация) */
.rx-check {
    width: 16px; height: 16px; border-radius: 4px; position: relative; flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.12);
    transition: all .3s;
}
.rx-check.checked { background: #f59e0b; border-color: #f59e0b; }
.rx-check.checked svg { animation: rx-check-pop .4s ease; }

@media (prefers-reduced-motion: reduce) {
    .ax-btn::after, .rx-btn::after, .ax-emblem, .rx-emblem,
    .ax-emblem::after, .rx-emblem::after, .ax-dot, .rx-dot { animation: none; }
}
