/* --- AUTH PAGES (ISOLATED STYLES) --- */
/* Этот файл должен подключаться ПОСЛЕ style.css */

/* Сброс фона и шрифтов конкретно для auth-body */
body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-main, #0A0A0F) !important;
    padding: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
    margin: auto;
}
.auth-wrapper.auth-wide { max-width: 580px; }

.auth-card {
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
}

.auth-header { text-align: center; margin-bottom: 35px; }
.auth-logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}
.auth-subtitle { color: var(--text-muted, #888899); font-size: 15px; margin: 0; line-height: 1.4; }

.auth-form-group { margin-bottom: 24px; }
.auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted, #888899);
}

/* Специфичность повышена, чтобы перебить глобальные стили input из style.css */
.auth-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    color: #fff !important;
    padding: 14px 18px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
}
.auth-input:focus {
    border-color: var(--lime, #CCFF00) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}
.auth-input::placeholder { color: rgba(255, 255, 255, 0.3); }

textarea.auth-input { resize: vertical; min-height: 100px; }
select.auth-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23CCFF00%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    padding-right: 40px;
}
select.auth-input option { background-color: #14141C; color: #fff; }

.auth-option-group { display: flex; flex-direction: column; gap: 10px; }
.auth-option-label {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 12px 16px; border-radius: 12px;
    border: 1px solid transparent; cursor: pointer; transition: 0.2s;
}
.auth-option-label:hover { background: rgba(255,255,255,0.06); }
.auth-option-label input[type="radio"], .auth-option-label input[type="checkbox"] {
    accent-color: var(--lime, #CCFF00); width: 18px; height: 18px; margin: 0;
}
.auth-option-text { font-size: 14px; color: #fff; }

.auth-checkbox-simple {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: 13px; color: var(--text-muted, #888899);
    line-height: 1.4;
}
.auth-checkbox-simple input { margin-top: 3px; accent-color: var(--lime, #CCFF00); }

.auth-btn {
    width: 100%; padding: 16px; border-radius: 50px;
    border: none;
    font-weight: 700; font-size: 16px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; justify-content: center; align-items: center;
    text-decoration: none;
}
.auth-btn-primary {
    background: linear-gradient(90deg, var(--p-start, #7B61FF), var(--p-end, #A64BF4));
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(123, 97, 255, 0.3);
}
.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(123, 97, 255, 0.5);
}
.auth-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15); color: #fff !important;
}
.auth-btn-outline:hover { border-color: var(--lime, #CCFF00); color: var(--lime, #CCFF00) !important; }

.auth-footer { text-align: center; margin-top: 30px; font-size: 14px; color: var(--text-muted, #888899); }
.auth-footer a { color: var(--lime, #CCFF00); font-weight: 600; }
.auth-back-link {
    display: block;
    text-align: center; margin-top: 25px;
    color: rgba(255,255,255,0.3); font-size: 13px;
}
.auth-back-link:hover { color: #fff; }

.auth-step-header {
    display: flex;
    justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.auth-step-title { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.auth-step-badge {
    background: rgba(255,255,255,0.1); color: var(--lime, #CCFF00);
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.auth-orb {
    position: fixed; border-radius: 50%; filter: blur(120px);
    z-index: 0; opacity: 0.25; pointer-events: none;
}
.auth-orb-1 { top: -20%; left: -10%; width: 600px; height: 600px; background: var(--p-start, #7B61FF); }
.auth-orb-2 { bottom: -20%; right: -10%; width: 500px; height: 500px; background: var(--lime, #CCFF00); }

.auth-noise {
    position: fixed; inset: 0; opacity: 0.05; pointer-events: none; z-index: 1;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERmZmYzMzMyMjJ4F772AAAACHRSTlMAM8z/M////wD0I40QAAAAQklEQVQ4y2NgQAX8DIwsCgwMDCz//v1jYAGi/////2fgBqL/////HyD8/w8A8f8PAPB/D4D4/x8A4v9/AAD//w8AABE0D5fZ6J55AAAAAElFTkSuQmCC');
}

/* --- ALERTS --- */
.alert { padding: 15px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: rgba(255, 71, 87, 0.1); border: 1px solid rgba(255, 71, 87, 0.3); color: #ff6b81; }
.alert-success { background: rgba(46, 213, 115, 0.1); border: 1px solid rgba(46, 213, 115, 0.3); color: #2ed573; }

/* --- NEW INVITE PAGE STYLES --- */
.invite-code-input {
    font-family: 'Manrope', monospace;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px;
    color: var(--lime, #CCFF00);
    width: 100%;
    transition: 0.3s;
}
.invite-code-input:focus {
    border-color: var(--lime, #CCFF00);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
    background: rgba(0,0,0,0.3);
}
.invite-code-input::placeholder {
    color: rgba(255,255,255,0.1);
    letter-spacing: 4px;
}

.promo-block {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(20,20,28,0.9), rgba(30,30,40,0.8));
    border: 1px solid rgba(123, 97, 255, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.promo-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--p-start, #7B61FF), var(--lime, #CCFF00), transparent);
}
.promo-text {
    font-size: 15px;
    line-height: 1.7;
    color: #dcdce6;
    margin-bottom: 25px;
}
.promo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}
.promo-stat-item i {
    font-size: 20px;
    color: var(--p-start, #7B61FF);
    margin-bottom: 8px;
    display: block;
}
.promo-stat-item span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .auth-card { padding: 30px 20px; }
}