/* ===== Global ===== */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #141e30, #243b55);
    position: relative;
    overflow: hidden;
    perspective: 1200px; /* allows 3D transforms to feel deep */
}
body::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,92,231,0.4), transparent 70%);
    top: -200px;
    left: -200px;
    animation: moveGlow 8s infinite alternate ease-in-out;
}

body::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,184,148,0.4), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: moveGlow 10s infinite alternate ease-in-out;
}

@keyframes moveGlow {
    0% { transform: translate(0,0); }
    100% { transform: translate(50px,50px); }
}
/* ===== Navbar ===== */
.navbar {
    background: #1e1e2f !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
    transition: transform 0.3s ease;
}
.navbar-brand:hover {
    transform: scale(1.1) rotate(-2deg);
}

/* ===== Buttons ===== */
.btn-primary, .btn-success, .btn-danger {
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: #6c5ce7 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-success:hover {
    background: #00b894 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-danger:hover {
    background: #d63031 !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== Cards / Tables ===== */
table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: #fff;
}

table thead {
    background: linear-gradient(90deg, #6c5ce7, #00b894);
    color: #fff;
    text-transform: uppercase;
}

table tbody tr:hover {
    background: #f1f1f1;
    transform: scale(1.01);
    transition: all 0.2s ease-in-out;
}

/* ===== Task Cards (Dashboard) ===== */
.task-card {
    background: linear-gradient(135deg, #141e30, #243b55);
    color: #fff;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
    cursor: pointer;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    will-change: transform;
}

.task-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(3deg) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.task-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.task-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.8rem;
}

/* ===== Forms ===== */
form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* .login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
} */
/* ===== Forms (Right Panel) ===== */
/* ===== Glow Animation ===== */
@keyframes softGlow {
  0% { box-shadow: 0 0 10px rgba(108,92,231,0.2), 0 0 15px rgba(0,184,148,0.2); }
  50% { box-shadow: 0 0 15px rgba(108,92,231,0.3), 0 0 20px rgba(0,184,148,0.25); }
  100% { box-shadow: 0 0 10px rgba(108,92,231,0.2), 0 0 15px rgba(0,184,148,0.2); }
}
/* ===== Forms Background & Glow ===== */
.login-form,
.register-form {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.4s ease;
  animation: softGlow 6s infinite alternate; /* continuous subtle glow */
}

/* Hover: intensified glow + gradient */

/* ===== Inputs & Texts ===== */
input, textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  transition: all 0.3s ease;
}
input::placeholder {
  color: rgba(255,255,255,0.7);
}
input:focus, textarea:focus {
  box-shadow: 0 0 15px rgba(108,92,231,0.6);
  outline: none;
}

.auth-container a {
    color: #fff;
}

.auth-container a:hover {
    color: #6c5ce7;
}

.switch-link {
    color: #6c5ce7 !important;
}

.switch-link:hover {
    color: #00b894 !important;
}

/* ===== Divider “or” Glow ===== */
.divider span {
  background: none; /* remove white background */
  color: #fff;
  text-shadow: 0 0 5px rgba(108,92,231,0.6),
               0 0 10px rgba(0,184,148,0.4);
  transition: all 0.4s ease;
  animation: softGlow 6s infinite alternate; /* subtle glow animation */
}

/* ===== Google Button Glow ===== */
.google-btn {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  animation: softGlow 6s infinite alternate; /* subtle glow animation */
}
.google-btn:hover {
  background: linear-gradient(
      145deg, 
      rgba(108,92,231,0.3),
      rgba(0,184,148,0.2)
  );
  transform: translateY(-2px);
  animation: softGlow 1.5s infinite alternate;
  color: #fff;
}

/* ===== Badges ===== */
.badge {
    border-radius: 12px;
    padding: 0.5em 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 4px #fff, 0 0 8px #6c5ce7, 0 0 12px #00b894;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge.bg-warning {
    background: #fdcb6e;
    color: #222;
}

.badge.bg-warning:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px #6c5ce7, 0 0 25px #00b894;
}

/* ===== Fade Animations ===== */
.fade-page {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-page:nth-child(1) { animation-delay: 0.1s; }
.fade-page:nth-child(2) { animation-delay: 0.2s; }
.fade-page:nth-child(3) { animation-delay: 0.3s; }
.fade-page:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ===== Container ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    opacity: 0;
    transform: rotateY(-20deg) translateZ(-100px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.auth-wrapper.page-loaded {
    opacity: 1;
    transform: rotateY(0deg) translateZ(0);
}
.auth-container {
    width: 850px;
    max-width: 95%;
    height: 500px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    overflow: hidden;
    position: relative;
    transition: all 0.6s ease-in-out;
}

/* ===== Left Panel ===== */
.auth-left {
    width: 50%;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
}

.left-content {
    position: absolute;
    text-align: center;
    padding: 2rem;
    width: 80%;
    transition: opacity 0.4s ease;
}

.register-content {
    opacity: 0;
}

/* ===== Right Panel ===== */
.auth-right {
    width: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
}

/* ===== Forms ===== */
.form {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.6s ease;
}

/* ===== Fix Form Overlapping Issue ===== */
.login-form {
    z-index: 2;
    pointer-events: auto;
}

.register-form {
    z-index: 1;
    pointer-events: none;
}

.register-form {
    opacity: 0;
    transform: translateX(100%);
}

.login-form {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Toggle Active State ===== */
/* Slide whole container panels */
.auth-container.active {
    transform: translateX(0);
}

.auth-container.active .auth-left {
    transform: translateX(100%);
}

.auth-container.active .auth-right {
    transform: translateX(-100%);
}

.auth-container.active .login-form {
    opacity: 0;
    transform: translateX(-100%);
}

.auth-container.active .register-form {
    opacity: 1;
    transform: translateX(0);
}

.auth-container.active .login-form {
    z-index: 1;
    pointer-events: none;
}

.auth-container.active .register-form {
    z-index: 2;
    pointer-events: auto;
}


.auth-container.active .login-content {
    opacity: 0;
}

.auth-container.active .register-content {
    opacity: 1;
}

/* ===== Switch Link ===== */
.switch-link {
    background: none;
    border: none;
    padding: 0;
    color: #6c5ce7;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.switch-link:hover {
    color: #00b894;
}
/* ===== Smooth fade/slide ===== */
@keyframes slideIn {
    0% { opacity: 0; transform: translateX(50%) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ===== Social Login ===== */
.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.7rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

/* .google-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
} */

.google-btn:hover {
  background: linear-gradient(
      145deg, 
      rgba(108,92,231,0.3),
      rgba(0,184,148,0.2)
  );
  color: #fff;
  text-shadow: 0 0 8px rgba(108,92,231,0.5),
               0 0 12px rgba(0,184,148,0.4);
  transform: translateY(-2px) scale(1.02);
  animation: softGlow 1.5s infinite alternate;
}
.divider span {
  color: #fff; /* white text */
  text-shadow: 0 0 8px rgba(108,92,231,0.6),
               0 0 15px rgba(0,184,148,0.5);
  background: none;
}
.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

/* .divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    color: #777;
} */

.divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #ddd;
    top: 50%;
    left: 0;
    z-index: 1;
}
.login-form:hover input,
.login-form:hover textarea,
.register-form:hover input,
.register-form:hover textarea {
    color: #fff; /* already white, but add shadow for glow effect */
    text-shadow: 0 0 8px rgba(108,92,231,0.5),
                 0 0 12px rgba(0,184,148,0.4);
}

/* ========================= */
/* ===== WELCOME PAGE ===== */
/* ========================= */

.welcome-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 2;
}

.welcome-content {
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
}
.welcome-content.tilt {
    position: relative;
    z-index: 3; /* above mouse glow and grid */
}
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animated Gradient Title */
.welcome-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.welcome-title span {
    background: linear-gradient(90deg, #6c5ce7, #00b894, #6c5ce7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    animation: fadeSlideUp 1.5s ease forwards;
}

/* Buttons */
.welcome-buttons {
    animation: fadeSlideUp 1.8s ease forwards;
}

/* Glow Pulse Effect */
.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 70%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: 0.5s ease;
}

.glow-btn:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Floating Particles Effect */
.welcome-wrapper::before,
.welcome-wrapper::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    border-radius: 50%;
    animation: floatMove 6s infinite alternate ease-in-out;
}

.welcome-wrapper::before {
    top: 10%;
    left: 15%;
}

.welcome-wrapper::after {
    bottom: 15%;
    right: 20%;
    animation-duration: 8s;
}

@keyframes floatMove {
    0% { transform: translateY(0px); }
    100% { transform: translateY(40px); }
}
.grid-bg {
    position: fixed;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: moveGrid 30s linear infinite;
    z-index: -2;
}

@keyframes moveGrid {
    from { transform: translate(0,0); }
    to { transform: translate(-60px,-60px); }
}
.neon-text {
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    0% {
        text-shadow: 
            0 0 10px #6c5ce7,
            0 0 20px #00b894;
    }
    100% {
        text-shadow: 
            0 0 20px #6c5ce7,
            0 0 40px #00b894;
    }
}
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
        rgba(108,92,231,0.25),
        rgba(0,184,148,0.15),
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.08s linear;
    z-index: -1; /* 🔥 Important */
    mix-blend-mode: screen;
}
.magnetic {
    transition: transform 0.2s ease;
}

.magnetic:hover {
    transform: scale(1.1) translateY(-5px);
}
.page-transition {
    animation: pageFade 0.8s ease forwards;
    transform-style: preserve-3d;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.welcome-buttons a {
    position: relative;
    z-index: 5;
}
.auth-overlay {
  position: fixed;
  top:0; left:0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000; /* ensures overlay is above everything */
  transform: rotateY(-20deg) translateZ(-100px); /* keep 3D tilt */
  transition: all 0.8s ease; /* matches your original */
}

.auth-overlay.showing {
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) translateZ(0);
}

/* stop welcome tilt when overlay is active */
.auth-overlay.showing ~ .welcome-wrapper .welcome-content {
  transform: none !important;
}
.btn-close-auth {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-close-auth:hover {
  background: rgba(0,0,0,0.6);
  transform: scale(1.05);
}
/* ===== Fix button click issue ===== */
.welcome-buttons a,
.glow-btn {
    position: relative;  /* ensures pseudo-element stays behind */
    z-index: 10;         /* above any background/overlay pseudo-elements */
    pointer-events: auto; /* ensures it can receive clicks */
}

.glow-btn::after {
    pointer-events: none; /* prevents glow overlay from blocking clicks */
}

.welcome-wrapper::before,
.welcome-wrapper::after {
    pointer-events: none;
}
.welcome-buttons-wrapper {
  position: relative; /* keep buttons positioned normally */
  z-index: 10; /* above background/particles */
  pointer-events: auto; /* make sure clicks register */
  transform: none !important; /* ignore parent's tilt */
}

.welcome-buttons button {
  transform: scale(1); /* reset any inherited transforms */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-buttons button:hover {
  transform: scale(1.05); /* smooth scale hover */
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
/* ===== Dashboard Header ===== */
.dashboard-header {
    position: relative;
    z-index: 2;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 5px #6c5ce7,
        0 0 10px #6c5ce7,
        0 0 20px #00b894,
        0 0 30px rgba(0,184,148,0.7),
        0 0 40px rgba(108,92,231,0.5);
    animation: neonPulse 2s infinite alternate;
}

.grid-bg::after {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(108,92,231,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,184,148,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 60s linear infinite reverse;
    z-index: -3;
}

/* Reuse glow-btn + magnetic for + New Task button */
.dashboard-header .btn {
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.dashboard-header .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== Task Cards ===== */
.task-card {
    background: linear-gradient(135deg, #141e30, #243b55);
    color: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.task-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* Task Title Glow */
.task-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px #6c5ce7, 0 0 10px #00b894;
    animation: softGlow 4s infinite alternate;
}

/* Task Description */
.task-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
}

/* Status Badge Glow */
.badge {
    border-radius: 12px;
    padding: 0.5em 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px #fff;
}

.badge.bg-warning {
    background: #fdcb6e;
    color: #222;
}

.badge.bg-warning:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #fdcb6e;
}

/* Buttons inside Task Cards */
.task-card .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.task-card .btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Fade animation already applied via .fade-page */
.task-card, .btn-primary, .btn-success {
    position: relative;
    overflow: hidden;
}

.task-card::before, .btn-primary::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(108,92,231,0.2), transparent 70%);
    transform: translateX(0) translateY(0);
    transition: all 0.5s ease;
    pointer-events: none;
}

.task-card:hover::before, .btn-primary:hover::before {
    transform: translateX(20%) translateY(20%) scale(1.2);
    opacity: 0.6;
}