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

/* Body Styles */
html, body {
    overflow: hidden !important;
}

.pomo-login-body-3d {
    background: #050505;
    overflow: hidden !important;
    font-family: 'Rajdhani', sans-serif;
    height: 100vh;
    width: 100vw;
}

/* Hide Odoo Default Elements */
.o_main_navbar, #wrapwrap > header, #wrapwrap > footer, .o_footer, .o_website_cookies_bar {
    display: none !important;
}

#wrapwrap {
    padding-top: 0 !important;
    background: transparent !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* ────────────────────────────────────────────────────────────── */
/* 3D Canvas Background */
/* ────────────────────────────────────────────────────────────── */
#three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 30% 20%, #0a0a0a, #020202);
}

/* ────────────────────────────────────────────────────────────── */
/* Scanlines & Vignette Effects */
/* ────────────────────────────────────────────────────────────── */
.scanlines-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 2px,
        transparent 2px,
        transparent 6px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ────────────────────────────────────────────────────────────── */
/* 6D Corner Borders */
/* ────────────────────────────────────────────────────────────── */
.corner-3d {
    position: fixed;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    z-index: 15;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.corner-tl { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.corner-tr { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.corner-br { bottom: 30px; right: 30px; border-left: none; border-top: none; }

/* ────────────────────────────────────────────────────────────── */
/* HUD Elements */
/* ────────────────────────────────────────────────────────────── */
.hud-top {
    position: fixed;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 15;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.3s forwards;
}

.hud-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFD700, #FFA500, #FFD700, transparent);
}

.hud-text {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(255, 215, 0, 0.8);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.hud-bottom {
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 15;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.hud-bottom-text {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 3px;
    color: rgba(184, 184, 184, 0.4);
}

/* ────────────────────────────────────────────────────────────── */
/* Logo Section */
/* ────────────────────────────────────────────────────────────── */
.login-logo-3d {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 12;
    opacity: 0;
    animation: fadeInDown 0.8s ease 0.5s forwards;
}

.logo-3d-main {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 40%, #FFA500 70%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 5px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.logo-3d-sub {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(184, 184, 184, 0.5);
    margin-top: 8px;
}

/* ────────────────────────────────────────────────────────────── */
/* Login Card Wrapper */
/* ────────────────────────────────────────────────────────────── */
.login-card-wrapper-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

/* Main 3D Card */
.pomo-login-card-3d {
    background: linear-gradient(145deg, rgba(15, 15, 22, 0.96), rgba(8, 8, 12, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 32px;
    padding: 45px 38px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 215, 0, 0.15);
    transition: all 0.4s ease;
}

.pomo-login-card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), transparent 60%, rgba(255, 215, 0, 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Floating Rings */
.floating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.15);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring-orbit-1 {
    width: 380px;
    height: 380px;
    border-top: 2px solid rgba(255, 215, 0, 0.4);
    animation: spin3D 14s linear infinite;
}

.ring-orbit-2 {
    width: 480px;
    height: 480px;
    border-right: 2px solid rgba(255, 165, 0, 0.3);
    animation: spinReverse3D 18s linear infinite;
}

.ring-orbit-3 {
    width: 580px;
    height: 580px;
    border-bottom: 1px solid rgba(255, 200, 0, 0.15);
    animation: spin3D 25s linear infinite;
}

@keyframes spin3D {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse3D {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Card Header */
.card-header-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.card-glowing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 10px #FFD700;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.card-title-3d {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    color: #FFD700;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Input Groups */
.input-group-3d {
    margin-bottom: 25px;
    position: relative;
}

.input-group-3d label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 215, 0, 0.8);
    display: block;
    margin-bottom: 8px;
}

.input-group-3d input {
    width: 100%;
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s;
    outline: none;
}

.input-group-3d input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.input-group-3d input::placeholder {
    color: rgba(184, 184, 184, 0.3);
}

.input-focus-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.input-group-3d input:focus ~ .input-focus-glow {
    width: 100%;
}

/* Login Button */
.login-buttons-3d {
    margin-top: 15px;
}

.btn-login-3d {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 60px;
    padding: 14px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login-3d:hover::before {
    left: 100%;
}

.btn-login-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Forgot Link */
.forgot-link-3d {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(184, 184, 184, 0.5);
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-link-3d:hover {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Card Footer */
.card-footer-3d {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(184, 184, 184, 0.4);
}

.security-badge svg {
    stroke: rgba(255, 215, 0, 0.6);
}

/* Alert Messages */
.alert-3d {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 12px;
    text-align: center;
    font-family: 'Space Mono', monospace;
}

.alert-danger {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(68, 255, 68, 0.08);
    border: 1px solid rgba(68, 255, 68, 0.3);
    color: #6bff6b;
}

/* Back Link */
.back-link-3d {
    position: fixed;
    bottom: 35px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.2s forwards;
}

.back-link-3d a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(184, 184, 184, 0.5);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link-3d a:hover {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 580px) {
    .pomo-login-card-3d {
        padding: 32px 24px;
    }
    
    .card-title-3d {
        font-size: 16px;
        letter-spacing: 4px;
    }
    
    .login-logo-3d {
        top: 60px;
    }
    
    .logo-3d-main {
        font-size: 22px;
        letter-spacing: 3px;
    }
    
    .corner-3d {
        width: 45px;
        height: 45px;
    }
    
    .corner-tl, .corner-tr {
        top: 15px;
    }
    
    .corner-bl, .corner-br {
        bottom: 15px;
    }
    
    .hud-line {
        width: 50px;
    }
    
    .ring-orbit-1, .ring-orbit-2, .ring-orbit-3 {
        display: none;
    }
}