/* ============================================
   Страница входа
   ============================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f1724 100%);
    padding: 20px;
}

.login-wrapper {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--layer-3);
}

/* Левая часть — мебель */
.login-visual {
    flex: 1.1;
    background: linear-gradient(135deg, #e8edf2, #dce3ea);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-width: 350px;
}

/* Правая часть — форма */
.login-form-side {
    flex: 1;
    padding: 48px 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-logo p {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ========== МЕБЕЛЬ ========== */
.furniture-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 35px;
}

.furniture-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.15));
    animation: float 3.5s ease-in-out infinite;
}

.furniture-item:nth-child(1) { animation-delay: 0s; }
.furniture-item:nth-child(2) { animation-delay: 0.5s; }

.furniture-item:hover {
    transform: translateY(-5px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Навесной шкаф */
.wall-cabinet {
    width: 140px;
    height: 160px;
    background: linear-gradient(145deg, #5a6e7c, #3e4e5c);
    border-radius: 8px 8px 12px 12px;
    position: relative;
    box-shadow: 0 8px 0 #2a3a48, inset 0 1px 0 rgba(255,255,255,0.2);
}

.wall-cabinet::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.cabinet-door {
    position: absolute;
    width: 55px;
    height: 100px;
    background: linear-gradient(145deg, #f0e6d8, #e0d0bc);
    border-radius: 6px;
    bottom: 18px;
    left: 15px;
    box-shadow: inset 0 0 0 1px #c0a87a;
}

.cabinet-door.right { left: auto; right: 15px; }

.door-handle {
    position: absolute;
    width: 6px;
    height: 35px;
    background: linear-gradient(145deg, #b8a06a, #9a8250);
    border-radius: 3px;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.cabinet-door.right .door-handle { left: auto; right: 12px; }

/* Напольная тумба */
.base-cabinet {
    width: 160px;
    height: 130px;
    background: linear-gradient(145deg, #5a6e7c, #3e4e5c);
    border-radius: 8px 8px 12px 12px;
    position: relative;
    box-shadow: 0 8px 0 #2a3a48, inset 0 1px 0 rgba(255,255,255,0.2);
}

.drawer {
    position: absolute;
    width: 85%;
    height: 32px;
    background: linear-gradient(145deg, #f0e6d8, #e0d0bc);
    border-radius: 6px;
    left: 7.5%;
    box-shadow: inset 0 0 0 1px #c0a87a;
}

.drawer.top { top: 20px; }
.drawer.middle { top: 58px; }

.drawer-handle-horizontal {
    position: absolute;
    width: 35px;
    height: 5px;
    background: linear-gradient(145deg, #b8a06a, #9a8250);
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Глазки */
.eyes {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 22px;
    z-index: 10;
}

.eye {
    width: 24px;
    height: 24px;
    background: #fefefe;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px #2c3e44, 0 2px 5px rgba(0,0,0,0.2);
}

.pupil {
    width: 12px;
    height: 12px;
    background: #1a2a2e;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 6px;
    transition: all 0.08s ease;
}

.pupil::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.furniture-item.away .pupil {
    transform: translateX(18px);
}

/* Адаптив */
@media (max-width: 768px) {
    .login-wrapper { flex-direction: column; max-width: 420px; }
    .login-visual { padding: 30px 16px; min-width: auto; }
    .login-form-side { padding: 32px 24px; }
    .wall-cabinet, .base-cabinet { transform: scale(0.8); }
}

/* ========== ФОН ========== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0B0F17 0%, #111827 50%, #1e293b 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    pointer-events: none;
}

/* ========== ВЫДВИЖНОЙ ЯЩИК ========== */
.pull-out {
    width: 130px;
    height: 110px;
    background: linear-gradient(145deg, #5a6e7c, #3e4e5c);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 0 #2a3a48, inset 0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.pull-out:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 #2a3a48;
}

.pull-out:active {
    transform: translateX(20px);
    transition: transform 0.2s;
}

.pull-out-front {
    position: absolute;
    width: 90%;
    height: 65px;
    background: linear-gradient(145deg, #f0e6d8, #e0d0bc);
    border-radius: 6px;
    left: 5%;
    top: 22px;
    box-shadow: inset 0 0 0 1px #c0a87a;
}

.pull-handle {
    position: absolute;
    width: 45px;
    height: 5px;
    background: linear-gradient(145deg, #b8a06a, #9a8250);
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}