/* NEXUS – Neumorphism Login (Pure Black + #c2aa65 Gold Theme) */
* {margin:0;padding:0;box-sizing:border-box;}

body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    background:#000000;
    min-height:100vh;display:flex;align-items:center;justify-content:center;
    padding:20px;line-height:1.6;
    color:#e0e0e0;
}

.login-container{width:100%;max-width:420px;}
.login-card{
    background:#000000;
    border-radius:30px;padding:50px 40px;
    box-shadow:
        20px 20px 60px #000000,
        -20px -20px 60px #000000;
    position:relative;transition:all .3s;
}
.login-card:hover{transform:translateY(-5px);}

.login-header{text-align:center;margin-bottom:40px;}
.neu-icon{
    width:80px;height:80px;margin:0 auto 24px;
    background:#000000;border-radius:50%;display:flex;align-items:center;justify-content:center;
    box-shadow:
        8px 8px 20px #000000,
        -8px -8px 20px #000000;
    transition:all .3s;
}
.neu-icon:hover{
    box-shadow:
        4px 4px 10px #000000,
        -4px -4px 10px #000000,
        inset 4px 4px 10px #000000,
        inset -4px -4px 10px #000000;
}
.icon-inner{width:56px;height:56px;display:flex;align-items:center;justify-content:center;}
.nexus-logo{width:100%;height:100%;}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    background: linear-gradient(120deg, #fff, #e6cf89, #fff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldFlow 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(156, 139, 83, 0.25);
}

/* smooth flowing gradient */
@keyframes goldFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



.login-header p{color:#fff;font-size:15px;font-weight:500;}

/* Inputs */
.form-group{margin-bottom:28px;position:relative;}
.neu-input{
    position:relative;background:#000000;border-radius:15px;
    box-shadow:
        inset 8px 8px 16px #000000,
        inset -8px -8px 16px #000000;
    transition:all .3s;
}
.neu-input:focus-within{
    box-shadow:
        inset 4px 4px 8px #000000,
        inset -4px -4px 8px #000000;
}
.neu-input input{
    width:100%;background:transparent;border:none;padding:20px 24px;padding-left:55px;
    color:#c2aa65;font-size:16px;font-weight:600;outline:none;transition:all .3s;
}
.neu-input input::placeholder{color:transparent;}
.neu-input label{
    position:absolute;left:55px;top:50%;transform:translateY(-50%);
    color:#9c8b53;font-size:16px;font-weight:500;pointer-events:none;transition:all .3s;
}
.neu-input input:focus + label,
.neu-input input:not(:placeholder-shown) + label{
    top:8px;font-size:12px;color:#c2aa65;transform:translateY(0);
}
.input-icon{
    position:absolute;left:20px;top:50%;transform:translateY(-50%);
    width:20px;height:20px;color:#9c8b53;transition:all .3s;
}
.input-icon svg{width:100%;height:100%;}
.neu-input:focus-within .input-icon{color:#c2aa65;}

/* Password Toggle */
.password-group{padding-right:50px;}
.neu-toggle{
    position:absolute;right:15px;top:50%;transform:translateY(-50%);
    background:#000000;border:none;width:35px;height:35px;border-radius:10px;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
    color:#9c8b53;
    box-shadow:
        4px 4px 10px #000000,
        -4px -4px 10px #000000;
    transition:all .3s;
}
.neu-toggle:hover{color:#c2aa65;}
.neu-toggle:active{
    box-shadow:
        inset 2px 2px 5px #000000,
        inset -2px -2px 5px #000000;
}
.neu-toggle svg{width:18px;height:18px;}
.eye-closed{display:none;}
.neu-toggle.show-password .eye-open{display:none;}
.neu-toggle.show-password .eye-closed{display:block;}

/* Checkbox */
.remember-wrapper input[type=checkbox]{display:none;}
.checkbox-label{display:flex;align-items:center;cursor:pointer;font-size:14px;color:#9c8b53;}
.neu-checkbox{
    position:relative;width:18px;height:18px;margin-right:10px;
}
.neu-checkbox::before{
    content:'';position:absolute;top:0;left:0;width:100%;height:100%;
    background:#000000;border-radius:6px;
    box-shadow:
        3px 3px 8px #000000,
        -3px -3px 8px #000000;
    transition:all .3s;
}
.remember-wrapper input[type=checkbox]:checked + .checkbox-label .neu-checkbox::before{
    background:#c2aa65;
    box-shadow:
        inset 2px 2px 5px #000000,
        inset -2px -2px 5px #000000;
}
.neu-checkbox svg{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);
    width:12px;height:12px;color:#000000;transition:all .3s;
}
.remember-wrapper input[type=checkbox]:checked + .checkbox-label svg{
    transform:translate(-50%,-50%) scale(1);
    color:#000000;
}

/* Links */
.forgot-link{color:#9c8b53;text-decoration:none;font-size:14px;font-weight:600;transition:all .3s;}
.forgot-link:hover{color:#c2aa65;}

/* Button */
.neu-button{
    width:100%;background:#000000;border:none;border-radius:16px;
    height:56px;cursor:pointer;position:relative;overflow:hidden;
    box-shadow:
        -2px -2px 0.5px #c9c081,
        -1px -1px 2.5px #c9c081;
    transition:all .3s;
}
.neu-button::before{
    content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;
    background:linear-gradient(90deg,transparent,rgba(194,170,101,.4),transparent);
    transition:left .5s;
}
.neu-button:hover{
    transform:translateY(-2px);
    box-shadow:
        12px 12px 30px #000000,
        -12px -12px 30px #000000;
}
.neu-button:hover::before{left:100%;}
.neu-button:active{
    transform:translateY(0);
    box-shadow:
        inset 4px 4px 10px #000000,
        inset -4px -4px 10px #000000;
}
.btn-text{position:relative;z-index:1;color:#f4f0b0;font-weight:700;transition:opacity .3s; }
.btn-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;transition:opacity .3s;}
.neu-spinner{
    width:20px;height:20px;border:3px solid #9c8b53;border-top:3px solid #c2aa65;
    border-radius:50%;animation:spin 1s linear infinite;
}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.neu-button.loading .btn-text{opacity:0}
.neu-button.loading .btn-loader{opacity:1}

/* Divider */
.divider{display:flex;align-items:center;margin:30px 0;gap:16px;}
.divider-line{flex:1;height:2px;background:linear-gradient(90deg,transparent,#c2aa65,transparent);}
.divider span{color:#c2aa65;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:1px;}

/* Social */
.social-login{display:flex;justify-content:center;gap:16px;margin-bottom:30px;}
.neu-social{
    width:50px;height:50px;background:#000000;border:none;border-radius:15px;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
    color:#f4f0b0;
    box-shadow:
        -1px -1px 2.5px #c9c081,
        -1px -1px 2.5px #000000;
    transition:all .3s;
}
.neu-social:hover{
    transform:translateY(-2px);
    box-shadow:
        8px 8px 20px #000000,
        -8px -8px 20px #000000;
}
.neu-social:active{
    transform:translateY(0);
    box-shadow:
        inset 3px 3px 8px #000000,
        inset -3px -3px 8px #000000;
}
.neu-social svg{width:22px;height:22px;}

/* Signup */
.signup-link{text-align:center;}
.signup-link p{color:#9c8b53;font-size:14px;}
.signup-link a{color:#c2aa65;text-decoration:none;font-weight:600;transition:color .3s;}
.signup-link a:hover{color:#e6cf89;}

/* Error */
.error-message{
    color:#ff3b5c;font-size:12px;font-weight:500;margin-top:8px;margin-left:20px;
    opacity:0;transform:translateY(-10px);transition:all .3s;
}
.error-message.show{opacity:1;transform:translateY(0);}
.form-group.error .neu-input{
    box-shadow:
        inset 8px 8px 16px #ffb8c4,
        inset -8px -8px 16px #000000,
        0 0 0 2px #ff3b5c;
}

/* Success */
.success-message{
    display:none;text-align:center;padding:40px 20px;opacity:0;transform:translateY(20px);transition:all .5s;
}
.success-message.show{display:block;opacity:1;transform:translateY(0);}
.success-message .neu-icon{
    background:#000000;color:#c2aa65;margin-bottom:20px;
}
.success-message h3{
    background:linear-gradient(135deg,#c2aa65,#e6cf89);
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;
    font-size:1.5rem;margin-bottom:8px;
}
.success-message p{color:#9c8b53;font-size:14px;}

/* Animations */
@keyframes gentleShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@keyframes successPulse{0%{transform:scale(0.8);opacity:0}50%{transform:scale(1.1)}100%{transform:scale(1);opacity:1}}

/* Responsive */
@media (max-width:480px){
    body{padding:16px;}
    .login-card{padding:35px 25px;border-radius:20px;}
    .login-header h2{font-size:1.75rem;}
    .neu-input input{padding:18px 20px;padding-left:50px;}
    .neu-input label{left:50px;}
    .form-options{flex-direction:column;align-items:flex-start;gap:16px;}
}

/* --------------------------------------------------------------
   HOVER-RESPONSIVE ABSTRACT BACKGROUND
   -------------------------------------------------------------- */
.bg-abstract {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Base blob (same as before) */
/* --------------------------------------------------------------
   ABSTRACT BACKGROUND BLOBS – FINAL SET
   -------------------------------------------------------------- */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    mix-blend-mode: soft-light;
    background: radial-gradient(circle at 10% 10%, #f4f0b0, transparent 70%);
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.6s ease,
                filter 0.6s ease;
    animation: drift 18s ease-in-out infinite;
}

/* ---------- 1 ---------- */
.bg-blob:nth-child(1) {
    width: 220px; height: 420px;
    top: 10%; left: -10%;
    animation-delay: 0s;
}

/* ---------- 2 ---------- */
.bg-blob:nth-child(2) {
    width: 460px; height: 560px;
    top: 60%; right: -15%;
    animation-delay: -6s;
}

/* ---------- 3 ---------- */
.bg-blob:nth-child(3) {
    width: 480px; height: 380px;      /* fixed – no duplicate */
    bottom: 15%; left: 20%;
    animation-delay: -7s;
}

/* ---------- 4 ---------- */
.bg-blob:nth-child(4) {
    width: 280px; height: 480px;      /* fixed – no duplicate */
    top: 30%; right: 10%;
    animation-delay: -3s;
}

/* ---------- 5 ---------- */
.bg-blob:nth-child(5) {
    width: 350px; height: 350px;
    top: 45%; left: -5%;
    animation-delay: -11s;
}

/* ---------- 6 ---------- */
.bg-blob:nth-child(6) {
    width: 520px; height: 420px;
    bottom: 5%; right: -8%;
    animation-delay: -14s;
}

/* ---------- 7 ---------- */
.bg-blob:nth-child(7) {
    width: 300px; height: 500px;
    top: 20%; left: 50%;
    animation-delay: -4s;
}

/* ---------- 8 ---------- */
.bg-blob:nth-child(8) {
    width: 400px; height: 300px;
    bottom: 30%; right: 30%;
    animation-delay: -9s;
}

/* Drift animation (unchanged) */
@keyframes drift {
    0%,100%{transform:translate(0,0) scale(1);}
    25%{transform:translate(80px,-60px) scale(1.08);}
    50%{transform:translate(-40px,70px) scale(0.94);}
    75%{transform:translate(60px,40px) scale(1.05);}
}

/* --------------------------------------------------------------
   HOVER INTERACTION (JavaScript will add .hover class)
   -------------------------------------------------------------- */
.bg-blob.hover {
    opacity: 0.28;               /* brighter when cursor is close */
    filter: blur(70px);          /* a little tighter for focus */
    animation-play-state: paused;/* stop drifting while cursor is near */
}

/* --------------------------------------------------------------
   CURSOR TRACKING (smooth lag)
   -------------------------------------------------------------- */
.bg-abstract::before {
    content:"";
    position:absolute;
    width:1px; height:1px;
    left:var(--mouse-x, 50%);
    top:var(--mouse-y, 50%);
    transform:translate(-50%,-50%);
    /* we only use this pseudo-element as a CSS-variable anchor */
}