/* =========================================
   XRINE GAMES — MODERN iOS LOGIN STYLES
   ========================================= */

:root {
    --accent-orange: #ff9f0a;
    --accent-gradient: linear-gradient(135deg, #ffb340 0%, #ff7000 100%);
    --bg-glass: rgba(18, 20, 28, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 159, 10, 0.5);
    --text-main: #ffffff;
    --text-muted: #8e8e93;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b0c10;
    background-image: radial-gradient(circle at 50% -20%, #1a1b2e 0%, #0b0c10 70%);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    padding-top: 80px; /* Защита от наезда фиксированного хедера */
    overflow-x: hidden;
}

/* Центрирование обертки */
.auth-wrapper-center {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Главная стеклянная карточка в стиле iOS */
.cyber-glass-card.auth-custom-card {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 45px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Шапка карточки */
.auth-card-top {
    text-align: center;
    margin-bottom: 35px;
}

.auth-main-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.auth-main-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Группы полей ввода */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.3s ease;
}

.cyber-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 16px 16px 50px;
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.cyber-input::placeholder {
    color: #636366;
    font-weight: 500;
}

.cyber-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-focus);
    box-shadow: 0 0 20px rgba(255, 159, 10, 0.15);
}

.cyber-input:focus ~ i,
.input-with-icon:focus-within i {
    color: var(--accent-orange);
}

/* Кастомный селект сервера */
.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.dropdown-selected {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-selected.has-value {
    color: var(--text-main);
}

.dropdown-selected::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-selected::after {
    transform: rotate(180deg);
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(18, 20, 28, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-option:hover {
    background: rgba(255, 159, 10, 0.15);
    color: var(--accent-orange);
}

.dropdown-option.selected {
    background: rgba(255, 159, 10, 0.25);
    color: var(--accent-orange);
}

/* Кнопка входа */
.btn-cyber-pay {
    width: 100%;
    background: var(--accent-gradient);
    color: #0b0c10;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 14.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(255, 112, 0, 0.3);
    margin-top: 10px;
}

.btn-cyber-pay:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 112, 0, 0.45);
}

.btn-cyber-pay:active {
    transform: translateY(0);
}

/* Тосты (Всплывающие уведомления) */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(22, 24, 32, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #ff453a;
    color: #fff;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 14px;
    width: 320px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 18px;
    color: #ff453a;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff453a;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #aeaeb2;
    font-weight: 500;
}