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

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

/* Фон на весь экран */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Оверлей для лёгкого затемнения (не перекрывает фон) */
.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* === Двухколоночный макет === */
.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* === ЛЕВАЯ ЧАСТЬ: Хайтек-сетка === */
.image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* HUD СЕТКА: круги + крест */
.hud-grid {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 191, 255, 0.6);
    border-radius: 50%;
    z-index: 0;
    /* Дополнительные круги через тени */
    box-shadow:
        0 0 0 2px rgba(0, 191, 255, 0.4),
        0 0 0 4px rgba(0, 191, 255, 0.3),
        0 0 0 6px rgba(0, 191, 255, 0.2);
}

/* Вертикальная линия (вверх-вниз) */
.hud-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 320px;
    background: rgba(0, 191, 255, 0.5);
    z-index: 0;
}

/* Горизонтальная линия (влево-вправо) */
.hud-grid::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 1px;
    background: rgba(0, 191, 255, 0.5);
    z-index: 0;
}

/* Вращающийся луч */
.hud-beam {
    position: absolute;
    width: 340px;
    height: 340px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 10deg,
        rgba(0, 191, 255, 0.2) 10deg,
        rgba(0, 191, 255, 0.6) 12deg,
        transparent 14deg
    );
    border-radius: 50%;
    z-index: 0;
    animation: rotateBeam 6s linear infinite;
}

@keyframes rotateBeam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Логотип — поверх всего */
.glitch-image {
    width: 320px;
    height: 320px;
    background-image: url('logo-mini.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 191, 255, 0.5);
    box-shadow:
        0 0 15px rgba(0, 191, 255, 0.4),
        0 0 30px rgba(0, 191, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
}

/* Лёгкая подсветка вокруг логотипа */
.glitch-image::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* === ПРАВАЯ ЧАСТЬ: Форма === */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.login-box h2 {
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.login-box p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(240, 240, 255, 0.3);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #00bfff;
    background: rgba(240, 240, 255, 0.5);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #00bfff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0099cc;
    transform: translateY(-1px);
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}