/* ===== СТРАНИЦА ЛОГИНА ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0d0d1a;
    padding: 0; /* Убираем паддинг */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100vh;
}

/* ===== ВРАЩАЮЩИЙСЯ ГРАДИЕНТ ===== */
.login-page::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(67, 181, 129, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(180, 100, 255, 0.08) 0%, transparent 50%);
    animation: rotateBg 40s linear infinite;
    z-index: 0;
    filter: blur(40px);
    transform-origin: center center;
    will-change: transform;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

.login-page::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: rotateBg 60s linear infinite reverse;
    z-index: 0;
    filter: blur(60px);
    will-change: transform;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    perspective: 1200px;
    padding: 20px; /* Отступы только для контейнера, чтобы карточка не прилипала к краям */
}

/* ===== СТЕКЛЯННАЯ КАРТОЧКА ===== */
.login-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(60px) saturate(1.8);
    -webkit-backdrop-filter: blur(60px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 48px 40px 40px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: float 8s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-card:hover {
    transform: translateY(-3px) scale(1.003);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-4px) rotateX(0.3deg) rotateY(0.5deg); }
    50% { transform: translateY(2px) rotateX(-0.2deg) rotateY(-0.3deg); }
    75% { transform: translateY(-2px) rotateX(0.2deg) rotateY(0.3deg); }
}

/* ===== ВНУТРЕННИЙ БЛИК ===== */
.login-card::before {
    content: '';
    position: absolute;
    top: -80%;
    left: -80%;
    width: 260%;
    height: 260%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: glassShine 15s ease-in-out infinite alternate;
}

@keyframes glassShine {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.4; }
    33% { transform: translate(5%, 10%) scale(1.2) rotate(5deg); opacity: 0.8; }
    66% { transform: translate(-5%, -5%) scale(0.9) rotate(-4deg); opacity: 0.5; }
    100% { transform: translate(3%, -3%) scale(1.1) rotate(3deg); opacity: 0.7; }
}

.login-card::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 40%;
    height: 25%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: reflection 8s ease-in-out infinite alternate;
}

@keyframes reflection {
    0% { transform: translateX(0) scale(1); opacity: 0.3; }
    50% { transform: translateX(20%) scale(1.2); opacity: 0.6; }
    100% { transform: translateX(-10%) scale(0.9); opacity: 0.4; }
}

/* ===== КНОПКА ВХОДА ===== */
.login-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 100%);
    transition: left 0.8s ease;
    z-index: 0;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.login-btn span {
    position: relative;
    z-index: 1;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 28px;
        border-radius: 24px;
    }
    .login-btn {
        padding: 12px;
        font-size: 15px;
        border-radius: 12px;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }
}