/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
    background: #030614;
    color: #e0f2fe;
    overflow-x: hidden;
    position: relative;
}

/* ===== КОСМИЧЕСКИЙ ФОН ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    animation: starsPulse 4s infinite alternate;
    z-index: 0;
}

.stars::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 15px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 72px 430px, #b0e0ff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 280px 150px, #f0f8ff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 350px 620px, #87ceeb, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 500px 300px, #b0c4de, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 750px 550px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 900px 200px, #add8e6, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1100px 700px, #b0e0ff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 1300px 400px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 1600px 150px, #87ceeb, rgba(0,0,0,0));
    background-repeat: repeat;
    opacity: 0.8;
}

@keyframes starsPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Синее свечение вместо серых полос */
.blue-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.glow-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 100, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: glowPulse 8s infinite alternate;
}

.glow-2 {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(70, 130, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: glowPulse 10s infinite alternate-reverse;
}

.glow-3 {
    position: absolute;
    top: 40%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 6s infinite alternate;
}

.glow-4 {
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(55px);
    animation: glowPulse 9s infinite alternate-reverse;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 0.7; transform: scale(1.2); }
}

.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(25, 60, 120, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(70, 30, 150, 0.15) 0%, transparent 55%),
                radial-gradient(circle at 10% 80%, rgba(10, 40, 100, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===== ГЕОМЕТРИЧЕСКИЕ ФИГУРЫ ===== */
.triangle-outline {
    position: fixed;
    border-style: solid;
    border-color: rgba(70, 130, 200, 0.25);
    border-width: 2px 0 0 2px;
    width: 0;
    height: 0;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    filter: drop-shadow(0 0 8px rgba(70, 130, 255, 0.3));
}

.t1 {
    left: 5%;
    top: 15%;
    border-left: 2px solid rgba(100, 180, 255, 0.4);
    border-bottom: 2px solid rgba(100, 180, 255, 0.4);
    width: 120px;
    height: 120px;
    transform: rotate(45deg);
}

.t2 {
    right: 8%;
    bottom: 10%;
    border-right: 2px solid rgba(80, 150, 250, 0.4);
    border-top: 2px solid rgba(80, 150, 250, 0.4);
    width: 200px;
    height: 200px;
    transform: rotate(-15deg);
}

.t3 {
    left: 20%;
    bottom: 25%;
    border-left: 2px solid rgba(50, 120, 230, 0.35);
    border-top: 2px solid rgba(50, 120, 230, 0.35);
    width: 180px;
    height: 180px;
    transform: rotate(70deg);
}

.t4 {
    right: 15%;
    top: 30%;
    border-right: 2px solid rgba(120, 170, 255, 0.4);
    border-bottom: 2px solid rgba(120, 170, 255, 0.4);
    width: 250px;
    height: 250px;
    transform: rotate(110deg);
}

/* ===== СТИЛИ АВТОРИЗАЦИИ ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: rgba(8, 15, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(90, 150, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(70, 130, 255, 0.1) inset, 0 0 40px rgba(70, 130, 255, 0.2);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.login-title {
    text-align: center;
    font-weight: 400;
    letter-spacing: 4px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #c3e0ff;
    text-shadow: 0 0 8px rgba(70, 150, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-star {
    color: #7bb9ff;
    font-size: 1.8rem;
}

.error-message {
    background: rgba(200, 40, 60, 0.2);
    border: 1px solid rgba(255, 80, 100, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: #ffb0b0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9bc0ff;
    margin-left: 0.5rem;
}

.input-group input {
    background: rgba(2, 8, 20, 0.7);
    border: 1px solid #2a4c7c;
    border-radius: 40px;
    padding: 0.9rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: #5f9eff;
    box-shadow: 0 0 15px rgba(70, 150, 255, 0.3);
}

.login-btn {
    background: transparent;
    border: 1.5px solid #3b70b0;
    border-radius: 40px;
    padding: 1rem;
    color: #d0e8ff;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
    margin-top: 1rem;
    backdrop-filter: blur(5px);
}

.login-btn:hover {
    background: rgba(40, 90, 170, 0.3);
    border-color: #7bb0ff;
    box-shadow: 0 0 20px #2f6bb0;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s;
}

.login-btn:hover .btn-glow {
    opacity: 1;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #5d7fb0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 1px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #4f7ec9;
    border-radius: 50%;
    display: inline-block;
}

/* ===== СТРАНИЦА ПАНЕЛЕЙ ===== */
.panels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: 6px;
    text-shadow: 0 0 15px #3168b3;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #d0e6ff;
}

.title-icon {
    font-size: 2.5rem;
    color: #5885d0;
}

.logout-link {
    color: #a0badd;
    text-decoration: none;
    border: 1px solid #314e77;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.2s;
}

.logout-link:hover {
    background: rgba(49, 78, 119, 0.3);
    border-color: #7fa2dd;
    color: white;
}

.panels-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem 2rem 4rem;
    min-height: 60vh;
    position: relative;
    z-index: 10;
    perspective: 1200px;
}

.panel-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 380px;
    max-width: 90%;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.panel-card {
    background: rgba(8, 15, 30, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(90, 170, 255, 0.25);
    border-radius: 32px;
    padding: 2.5rem 1.8rem;
    box-shadow: 0 30px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(70, 140, 255, 0.2) inset, 0 0 30px rgba(70, 140, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}

.panel-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(90, 170, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.panel-card:hover .panel-glow {
    opacity: 1;
}

.panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.panel-ip-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 10, 25, 0.6);
    border: 1px dashed #3a67a0;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    width: fit-content;
    font-size: 1rem;
}

.flag-icon {
    color: #7babff;
    font-size: 1.3rem;
}

.ip-text {
    font-family: monospace;
    letter-spacing: 1px;
    color: #b3d6ff;
}

.panel-title {
    font-size: 1.9rem;
    font-weight: 400;
    margin: 0.5rem 0 0.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.ip-flag {
    background: rgba(25, 70, 140, 0.5);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 1.1rem;
    border: 1px solid #426fb0;
    font-family: monospace;
    color: #b4d6ff;
}

.panel-decoration {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0.5rem 0;
}

.dash {
    height: 2px;
    background: linear-gradient(90deg, transparent, #5f93d0, transparent);
    flex: 1;
}

.triangle-mini {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid #5f93d0;
    opacity: 0.6;
    transform: scale(0.8);
    filter: drop-shadow(0 0 5px #5f93d0);
}

.panel-hint {
    text-align: right;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #8bb5ff;
    margin-top: 0.5rem;
    border-bottom: 1px dotted #33507c;
    padding-bottom: 0.3rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 800px) {
    .panels-container {
        gap: 2rem;
    }
    .page-title {
        font-size: 1.7rem;
        letter-spacing: 3px;
    }
    .panels-header {
        padding: 1.5rem;
    }
}/* ===== ОБНОВЛЕНИЯ ДЛЯ БЛОКОВ ===== */

/* Блок с IP и локацией - вертикальное расположение */
.panel-ip-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

/* Стили для IP */
.panel-ip-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 10, 25, 0.6);
    border: 1px dashed #3a67a0;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    width: fit-content;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(70, 130, 255, 0.2);
}

/* Стили для локации */
.panel-location {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 40, 70, 0.4);
    border: 1px solid #2a4c7c;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    width: fit-content;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    margin-top: 4px;
}

.location-icon {
    color: #7babff;
    font-size: 1rem;
    animation: twinkle 2s infinite alternate;
}

.city-name {
    color: #b3d6ff;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(90, 170, 255, 0.3);
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Обновленный заголовок (убираем IP из заголовка) */
.panel-title {
    font-size: 1.9rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #d0e6ff;
    text-shadow: 0 0 10px #3168b3;
    letter-spacing: 1px;
}

/* Адаптивность */
@media (max-width: 600px) {
    .panel-ip-block {
        width: 100%;
    }
    
    .panel-ip-flag, .panel-location {
        width: 100%;
        justify-content: center;
    }
}
