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

.lamp-login-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 40px;
    justify-content: center;
    position: relative;
}

/* Lamp Styles */
.lamp-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 400px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.lamp-container.on {
    left: calc(50% - 350px);
}

.lamp {
    position: relative;
    z-index: 2;
}

.lamp-shade {
    width: 160px;
    height: 120px;
    background: linear-gradient(135deg, #5a5a6a 0%, #3a3a4a 50%, #2a2a3a 100%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 5px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.lamp-shade-inner {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 90px;
    background: linear-gradient(135deg, #4a4a5a 0%, #2a2a3a 100%);
    clip-path: polygon(25% 0%, 75% 0%, 90% 100%, 10% 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.lamp-bulb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 50px;
    background: radial-gradient(circle, #00ffcc 0%, #00d4aa 50%, #00a888 100%);
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.lamp-shade.on .lamp-bulb {
    opacity: 1;
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.8), 0 0 60px rgba(0, 212, 170, 0.4);
}

.lamp-harp {
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    border: 4px solid #6a6a7a;
    border-top: none;
    border-radius: 0 0 30px 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.lamp-harp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background: #6a6a7a;
    border-radius: 5px;
}

.lamp-base {
    width: 120px;
    height: 35px;
    background: linear-gradient(180deg, #6a6a7a 0%, #4a4a5a 50%, #3a3a4a 100%);
    border-radius: 60px 60px 15px 15px;
    margin: 0 auto;
    margin-top: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 3px 8px rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lamp-stand {
    width: 25px;
    height: 140px;
    background: linear-gradient(90deg, #3a3a4a 0%, #5a5a6a 30%, #7a7a8a 50%, #5a5a6a 70%, #3a3a4a 100%);
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cord Styles */
.cord {
    position: absolute;
    top: 195px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 200px;
    cursor: pointer;
    z-index: 10;
}

.cord-line {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, #4a4a5a 0%, #3a3a4a 100%);
    border-radius: 2px;
    transform-origin: top center;
    transition: transform 0.1s ease;
}

.cord-handle {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: linear-gradient(180deg, #6a6a7a 0%, #4a4a5a 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.1s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cord-handle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #5a5a6a;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cord-handle:hover {
    background: linear-gradient(180deg, #7a7a8a 0%, #5a5a6a 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.cord-handle:active {
    transform: translateX(-50%) scale(0.95);
}

/* Lamp Glow */
.lamp-glow {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.5) 0%, rgba(0, 212, 170, 0.2) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lamp-glow.on {
    opacity: 1;
}

/* Login Card Styles */
.login-card {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    width: 380px;
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.1), inset 0 0 20px rgba(0, 212, 170, 0.05);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    visibility: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
}

.login-card.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
}

.login-card:hover {
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: 0 0 60px rgba(0, 212, 170, 0.2), inset 0 0 30px rgba(0, 212, 170, 0.08);
}

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.lamp-alert {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.lamp-alert.alert-success {
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid rgba(0, 212, 170, 0.5);
    color: #00d4aa;
}

.lamp-alert.alert-danger {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.5);
    color: #ff5252;
}

.lamp-alert.alert-info {
    background: rgba(82, 168, 255, 0.2);
    border: 1px solid rgba(82, 168, 255, 0.5);
    color: #52a8ff;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(10, 10, 20, 0.8);
    border: 2px solid rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #00d4aa;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.6;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4aa 0%, #00a888 100%);
    border: none;
    border-radius: 10px;
    color: #0a0a0f;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.4);
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.6);
}

.login-btn:active {
    transform: translateY(0);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-links a {
    color: rgba(0, 212, 170, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-links a:hover {
    color: #00d4aa;
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 40px;
        padding: 20px;
    }

    .lamp-container {
        width: 220px;
        height: 320px;
    }

    .lamp-shade {
        width: 130px;
        height: 100px;
    }

    .lamp-stand {
        height: 120px;
    }

    .login-card {
        width: 320px;
        padding: 40px 30px;
    }
}

@media (max-width: 400px) {
    .login-card {
        width: 280px;
        padding: 30px 20px;
    }

    .auth-logo h1 {
        font-size: 26px;
    }
}
