/* ==========================================================================
   1. Сброс стилей и живой неоновый фон
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    width: 100vw;
    min-height: 100vh;
    background: #0f172a; /* Глубокий космический фон */
}

body {
    display: flex;
    flex-direction: column;
    color: #f8fafc;
    position: relative;
    overflow-x: hidden;
}

body::before, body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: floatBg 8s infinite alternate ease-in-out;
}

body::before {
    width: 450px;
    height: 450px;
    background: rgba(37, 99, 235, 0.25);
    top: 10%;
    left: 15%;
}

body::after {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.15);
    bottom: 10%;
    right: 15%;
    animation-delay: -4s;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   2. Шапка и Подвал (Матовое стекло)
   ========================================================================== */
header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
    z-index: 10;
}

header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

nav a:hover {
    color: #3b82f6;
}

.nav-login-btn {
    padding: 8px 24px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 24px;
    color: #3b82f6 !important;
}

.nav-login-btn:hover {
    background: #3b82f6;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    width: 100%;
}

footer {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: 50px;
    display: flex;
    align-items: center;
    z-index: 10;
}

footer p {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   3. Автоматически переносимая двухколоночная область (ПК-режим)
   ========================================================================== */
.main-page-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-hero {
    flex: 1 1 450px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.main-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-hero p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.feature-icon {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Правая карточка: Форма быстрого заказа */
.quick-order-container {
    flex: 1 1 350px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 24px;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.order-header {
    text-align: left;
    margin-bottom: 24px;
}

.order-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.order-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ==========================================================================
   4. Поля ввода (Инпуты)
   ========================================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-order-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-order-submit:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   5. СТИЛИ СТРАНИЦЫ АВТОРИЗАЦИИ (/auth/login)
   ========================================================================== */
.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-container {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px;
    padding: 32px 40px;
    width: 100%;
    max-width: 420px; /* Слегка расширили под три кнопки */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 18px;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.auth-header p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.delivery-scene {
    position: relative;
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: visible;
    transform-style: preserve-3d;
}

.isometric-box {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateZ(45deg);
    animation: boxFloat 3s infinite ease-in-out;
}

.box-face {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #ea580c;
    border: 1px solid #c2410c;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backface-visibility: visible;
}

.box-face.front  { transform: rotateY(0deg) translateZ(25px); background: #ea580c; }
.box-face.back   { transform: rotateY(180deg) translateZ(25px); background: #c2410c; }
.box-face.left   { transform: rotateY(-90deg) translateZ(25px); background: #9a3412; }
.box-face.right  { transform: rotateY(90deg) translateZ(25px); background: #c2410c; }

.top-flap {
    position: absolute;
    width: 25px;
    height: 50px;
    background: #f97316;
    border: 1px solid #c2410c;
    top: 0;
    transform-origin: left center;
}

.flap-left { left: 0; transform: rotateY(-90deg) translateZ(0px); }
.flap-right { left: 25px; transform-origin: right center; transform: rotateY(90deg) translateZ(0px); }

.box-glow {
    position: absolute;
    width: 46px;
    height: 46px;
    background: #3b82f6;
    filter: blur(10px);
    transform: translateZ(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.speed-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    animation: windPass linear infinite;
}

.l1 { width: 70px; top: 20%; animation-duration: 1.2s; left: -100px; }

