@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0b0b1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #1a0b2e, #0b0b1a 80%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(123, 47, 252, 0.25);
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
}
.auth-card:hover {
    box-shadow: 0 25px 70px rgba(123, 47, 252, 0.15);
    transform: translateY(-5px);
}
.auth-card h2 {
    text-align: center;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px rgba(123, 47, 252, 0.3);
    margin-bottom: 25px;
    font-size: 1.8rem;
}
.auth-card h2 i {
    color: #7b2ffc;
    margin-right: 10px;
}

.auth-form .form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    transition: all 0.3s;
    font-size: 1rem;
}
.auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.7);
    border-color: #7b2ffc;
    box-shadow: 0 0 25px rgba(123, 47, 252, 0.15);
    color: #fff;
}
.auth-form .form-control::placeholder {
    color: #888;
}
.auth-form label {
    color: #ccc;
    font-weight: 500;
    margin-bottom: 6px;
}

.btn-auth-primary {
    background: linear-gradient(45deg, #7b2ffc, #4facfe);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(123, 47, 252, 0.3);
    width: 100%;
    font-size: 1.1rem;
}
.btn-auth-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(123, 47, 252, 0.6);
}

.auth-link {
    color: #aaa;
    transition: color 0.3s;
    text-decoration: none;
    font-weight: 500;
}
.auth-link:hover {
    color: #7b2ffc;
    text-decoration: underline;
}

.alert-auth-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid #4caf50;
    color: #a5d6a7;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
}
.alert-auth-danger {
    background: rgba(245, 87, 108, 0.12);
    border: 1px solid #f5576c;
    color: #f8bbd0;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.auth-deco {
    position: fixed;
    font-size: 3.5rem;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}
.auth-deco-left {
    bottom: 10%;
    left: 5%;
    color: rgba(123, 47, 252, 0.2);
    font-size: 4.5rem;
}
.auth-deco-right {
    top: 15%;
    right: 5%;
    color: rgba(245, 87, 108, 0.2);
    font-size: 4rem;
    animation-delay: 2s;
}
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Адаптив */
@media (max-width: 576px) {
    .auth-card { padding: 20px 15px; }
    .auth-deco { display: none; }
    .auth-card h2 { font-size: 1.5rem; }
}

/* Улучшенная контрастность для support.php */
.chat-container .auth-card h2 {
    color: #fff !important;
    text-shadow: 0 0 25px rgba(123, 47, 252, 0.7);
}
.chat-container .message-text {
    color: #fff !important;
    font-weight: 500;
}
.chat-container .message-meta {
    color: #ddd !important;
}
.chat-container .text-muted {
    color: #ccc !important;
}

/* Яркий текст в списке обращений админки */
.request-list .request-link {
    color: #e0e0e0 !important;
}
.request-list .request-link strong {
    color: #ffffff !important;
    font-weight: 700;
}
.request-list .request-link .text-muted {
    color: #cccccc !important;
}

/* ===== ПЕРЕОПРЕДЕЛЯЕМ СЕРЫЙ НА БЕЛЫЙ ===== */
.text-muted {
    color: #f0f0f0 !important;
}
.auth-card .text-muted {
    color: #d0d0d0 !important;
}
.auth-link {
    color: #b0b0ff !important;
}
.auth-link:hover {
    color: #ffffff !important;
}