/* ============================================================
   АВТОРИЗАЦИОННЫЕ ЭКРАНЫ (без шапки)
   ============================================================ */

.auth-body {
    background: #07070d;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ===== КОНТЕЙНЕР КАРТОЧКИ ===== */
.auth-container {
    max-width: 420px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: containerIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes containerIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== СТЕКЛЯННАЯ КАРТОЧКА ===== */
.glass-card {
    background: linear-gradient(160deg, rgba(24,24,27,0.9) 0%, rgba(18,18,20,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Свечение сверху */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(214,175,106, 0.1) 0%, transparent 50%);
    animation: glowPulse 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* ===== ЗАГОЛОВОК КАРТОЧКИ ===== */
.auth-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #d6af6a, #d6af6a, #d6af6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: titleShimmer 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-subtitle {
    text-align: center;
    color: #85807a;
    font-size: 14px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* ===== ПОЛЯ ФОРМЫ ===== */
.auth-form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b9b4ac;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.auth-input-wrapper {
    position: relative;
}
.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #85807a;
    transition: color 0.3s ease;
    z-index: 2;
}
.auth-form-group input {
    width: 100%;
    padding: 15px 16px 15px 50px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}
.auth-form-group input:focus {
    border-color: #d6af6a;
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 30px rgba(214,175,106, 0.1);
    transform: translateY(-2px);
}
.auth-form-group input:focus + .auth-input-icon { color: #d6af6a; }
.auth-form-group input::placeholder { color: #555; }

/* ===== КНОПКА ===== */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d6af6a, #c48a3e);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 17px;
    color: #0a0a0f;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(214,175,106, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.auth-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.auth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(214,175,106, 0.4);
}
.auth-btn:hover::before { left: 200%; }
.auth-btn:active { transform: translateY(1px) scale(0.98); }

/* ===== ССЫЛКА ВНИЗУ ===== */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #85807a;
    font-size: 14px;
    position: relative;
    z-index: 10;
}
.auth-link a {
    color: #d6af6a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}
.auth-link a:hover {
    border-bottom: 1px solid #d6af6a;
    text-shadow: 0 0 10px rgba(214,175,106, 0.3);
    background: rgba(214,175,106, 0.05);
}

/* ===== FLASH-СООБЩЕНИЯ ===== */
.auth-flash {
    padding: 12px;
    background: rgba(226,96,79,0.1);
    border: 1px solid rgba(226,96,79,0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    color: #e2604f;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    animation: shake 0.4s ease;
    position: relative;
    z-index: 1;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== АНИМАЦИЯ ЗАГРУЗКИ КНОПКИ ===== */
.auth-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    color: transparent;
}
.auth-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(0,0,0,0.3);
    border-top-color: #0a0a0f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ЭКРАН ПОДТВЕРЖДЕНИЯ ВЫВОДА (упрощённая карточка)
   ============================================================ */

.confirm-card {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    background: #1b1b1e;
    border-radius: 20px;
    border: 1px solid #2a2a40;
    text-align: center;
}
.confirm-card .title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}
.confirm-card .amount {
    font-size: 32px;
    color: #d6af6a;
    margin: 20px 0;
}
.confirm-card .buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.confirm-card .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.confirm-card .btn-yes { background: #8fd3a0; color: #0a0a0f; }
.confirm-card .btn-no  { background: #e2604f; color: #fff; }
.confirm-card .btn-yes:hover { box-shadow: 0 0 30px rgba(143,211,160,0.3); }
.confirm-card .btn-no:hover  { box-shadow: 0 0 30px rgba(226,96,79,0.3); }

/* ===== АДАПТИВ ===== */
@media (max-width: 500px) {
    .glass-card { padding: 30px 25px; }
    .auth-title { font-size: 24px; }
}