        :root {
            --bg-color: #0c0c12;
            --lamp-matte: #e8e2d9; 
            --lamp-shade: #f5f0e6;
            --lamp-base: #d1ccc2;
            --glow-color: rgba(255, 214, 110, 0.3);
            --accent-color: #d4a373; 
            --on: 0;
            --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { box-sizing: border-box; }

        body {
            min-height: 100vh;
            display: grid;
            place-items: center;
            background: var(--bg-color);
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            overflow: hidden;
            transition: background var(--transition);
        }

        body::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            /* background: radial-gradient(circle at 50% 40%, var(--glow-color), transparent 70%); */
            opacity: var(--on);
            transition: opacity var(--transition);
            pointer-events: none;
        }

        .container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8vmin;
            z-index: 1;
            flex-wrap: wrap;
            width: 100%;
            max-width: 1000px;
        }

        /* --- Cute Lamp --- */
        .lamp-wrapper {
            position: relative;
            width: 280px;
            height: 400px;
            display: flex;
            justify-content: center;
        }

        .lamp-svg {
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        /* Mushroom Shape */
        .lamp-shade {
            fill: var(--lamp-shade);
            transition: fill var(--transition);
        }
        [data-on="true"] .lamp-shade {
            fill: #fff;
            filter: drop-shadow(0 0 30px rgba(255, 255, 200, 0.4));
        }

        .lamp-base {
            fill: var(--lamp-base);
        }

        .inner-glow {
            fill: #ffdb8a;
            opacity: 0;
            transition: opacity var(--transition);
            filter: blur(15px);
        }
        [data-on="true"] .inner-glow {
            opacity: 0.6;
        }

        .cord-line {
            stroke: #555;
            stroke-width: 2;
        }
        .cord-bead {
            fill: var(--accent-color);
        }
        .cord-hit {
            cursor: pointer;
        }

        /* ---Login Form --- */
        .login-form {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            padding: 2.5rem;
            border-radius: 30px;
            width: 340px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(30px);
            opacity: 0;
            pointer-events: none;
            transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .login-form.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        .login-form h2 {
            color: #fff;
            margin: 0 0 1.5rem 0;
            font-weight: 500;
            text-align: center;
            font-size: 1.5rem;
        }

        .form-group { margin-bottom: 1.2rem; }
        .form-group label {
            display: block;
            color: #999;
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
            margin-left: 5px;
        }

        .form-group input {
            font-family: "Science Gothic", sans-serif;
            width: 100%;
            padding: 14px 18px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid transparent;
            border-radius: 15px;
            color: white;
            outline: none;
            transition: 0.3s;
            font-size: 1rem;
        }

        .form-group input:focus {
            border-color: var(--accent-color);
            background: rgba(255, 255, 255, 0.12);
        }

        .login-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(to right, #0000ff, #ff0000);
            border: none;
            border-radius: 15px;
            font-family: "Science Gothic", sans-serif;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: 0.3s;
            margin-top: 10px;
            font-size: 1rem;
        }

        .login-btn:hover {
            transform: scale(1.02);
            background: var(--lamp-shade);
            color: #121417;
        }

        .kakarda {
           margin-bottom: 19.2px;
           display: flex;
           justify-content: center; 
        }



/* Применяем шрифт к плейсхолдеру */
input::placeholder {
  font-family: "Science Gothic", sans-serif; /* Название шрифта из Google Fonts */
  font-weight: 700;                /* Жирность */
  text-align: center;              /* По центру */
}

/* На всякий случай дублируем для самого инпута, 
   чтобы курсор тоже был по центру */
input {
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.geo-widget {
    font-family: 'Science Gothic', sans-serif;
    color: #f5f0e6;
    padding: 30px 40px; /* Увеличил отступы */
    display: inline-block;
    text-align: left;
    
}

#location {
    font-size: 72px; /* Было 14px, стало 20px */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#clock {
    text-align: center;
    font-size: 52px; /* Было 48px, стало 72px */
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums; /* Цифры не "прыгают" при смене секунд */
}
body {
    min-height: 100vh;
    display: flex; /* Меняем grid на flex для лучшего контроля высоты */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    margin: 0;
    padding: 20px; /* Даем небольшие отступы, чтобы контент не лип к краям */
    overflow-x: hidden;
    /* Убираем overflow: hidden, чтобы если экран СОВСЕМ маленький, можно было проскроллить */
}
.container {
    display: flex;
    flex-direction: row; /* По умолчанию в ряд */
    align-items: center;
    justify-content: center;
    gap: 40px; 
    width: 100%;
    max-width: 1000px;
}
/* 2. Адаптивная лампа */
.lamp-wrapper {
    position: relative;
    /* Вместо фиксы 280х400 используем clamp: 
       минимум 180px, оптимально 25vw, максимум 280px */
    width: clamp(180px, 40vw, 280px); 
    aspect-ratio: 280 / 400; /* Сохраняем пропорции SVG */
    display: flex;
    justify-content: center;
}

.lamp-svg {
    width: 100%;
    height: auto; /* SVG теперь тянется за родителем */
    overflow: visible;
}

/* 3. Адаптивная форма */
.login-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 30px;
    /* Форма сужается на мобилках */
    width: 100%;
    max-width: 340px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* 4. Адаптивный текст (Локация и Часы) */
.geo-widget {
    width: 100%;
    text-align: center; /* Центрируем для мобилок */
    padding: 10px;
}

#location {
    /* Текст будет уменьшаться от 72px до 24px в зависимости от ширины экрана */
    font-size: clamp(24px, 8vw, 72px); 
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

#clock {
    /* Часы от 32px до 52px */
    font-size: clamp(32px, 10vw, 52px);
    font-weight: 700;
    line-height: 1;
}

@media (max-height: 800px) {
  .kakarda {
           margin-bottom: 15.2px;
           
        }
.form-group input {
            width: 100%;
            padding: 10px 14px;
        }
 .login-btn {
            width: 100%;
            padding: 11px;
            margin-top: 6px;
            
        }
}
