body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.5) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.5) 0, transparent 50%),
        radial-gradient(at 50% 50%, rgba(59, 130, 246, 0.1) 0, transparent 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    max-width: 500px !important;
    height: auto !important;
    position: relative !important;
    z-index: 1;
    padding: 2rem !important;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.login-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 500;
}

.login-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4) !important;
    padding: 3rem 2rem !important;
}

.code-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
}

#real-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: text;
    z-index: 10;
    caret-color: transparent;
}

.code-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.char {
    flex: 1;
    height: 4.5rem;
    max-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.char.active {
    border-bottom-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 15px 15px -10px var(--primary-glow);
}

.char.filled {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

#login-btn {
    height: 56px;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    background: #fff;
    color: #020617;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

#login-btn:hover:not(:disabled) {
    background: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

#login-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.error {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    background: rgba(244, 63, 94, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .char {
        height: 3.25rem;
        font-size: 1.4rem;
        border-radius: 8px;
    }
    .code-display {
        gap: 5px;
    }
    .login-card {
        padding: 2rem 1.25rem !important;
    }
}
