/* ========================================
   MODERN AUTH PAGES - NEW DESIGN
   ======================================== */

* {
  box-sizing: border-box;
}

body.signin-page {
  background: var(--thrive-bg-darkest, #0b0f14) !important;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
}

.signin-page .scrollable-page {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  height: auto !important;
  margin-bottom: 0px;
  overflow-y: visible !important;
}

.signin-page .form-signin {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* MAIN WRAPPER */
.auth-wrapper {
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  background: #ffffff;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  margin: 0 auto;
}

/* LEFT PANEL – IMAGE ONLY */
.left-panel {
  width: 50%;
  min-height: 600px;
  background-color: #667eea;
  /* Fallback color if image doesn't load */
  background-image: url("https://portal.thrivepix.com/files/general/global_files/all/_file696972c95ee41-thrivepix_login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .left-panel {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  .left-panel {
    min-height: 120px;
  }
}

/* RIGHT PANEL */
.right-panel {
  width: 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* LOGO */
.brand {
  margin-bottom: 30px;
}

.brand img {
  height: 36px;
  max-width: 200px;
}

/* HEADINGS */
.right-panel h1 {
  font-size: 30px;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 700;
}

.subtitle {
  color: #64748b;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.5;
}

/* FORM */
.right-panel form {
  width: 100%;
}

.right-panel form label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  color: #0f172a;
  font-weight: 500;
}

.right-panel form input[type="email"],
.right-panel form input[type="password"],
.right-panel form input[type="text"] {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 18px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.right-panel form input:focus {
  outline: none;
  border-color: #156EF6;
  box-shadow: 0 0 0 3px rgba(21, 110, 246, 0.1);
}

.right-panel form input::placeholder {
  color: #94a3b8;
}

/* OPTIONS ROW */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.options a {
  color: #156EF6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.options a:hover {
  color: #0d4fb8;
  text-decoration: underline;
}

/* REMEMBER ME */
.remember-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox input {
  display: none;
}

.checkbox-ui {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #cbd5e1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-ui::after {
  content: "✓";
  font-size: 12px;
  color: #ffffff;
  font-weight: bold;
  opacity: 0;
}

.remember-checkbox input:checked+.checkbox-ui {
  background: #156EF6;
  border-color: #156EF6;
}

.remember-checkbox input:checked+.checkbox-ui::after {
  opacity: 1;
}

/* LOGIN BUTTON */
.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #156EF6;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: #0d4fb8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 110, 246, 0.3);
}

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

/* SIGNUP */
.signup {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: #64748b;
}

.signup a {
  color: #156EF6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signup a:hover {
  color: #0d4fb8;
  text-decoration: underline;
}

/* FOOTER */
.footer {
  display: none;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 40px;
  padding-top: 20px;
}

/* ALERT MESSAGES */
.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-alert.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.auth-alert i {
  vertical-align: middle;
  margin-right: 8px;
}

/* reCAPTCHA */
.right-panel .g-recaptcha {
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .left-panel {
    width: 100%;
  }

  .right-panel {
    width: 100%;
    padding: 40px 25px;
  }

  .right-panel h1 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  body.signin-page {
    padding: 10px;
  }

  .auth-wrapper {
    border-radius: 8px;
  }

  .right-panel {
    padding: 30px 20px;
  }

  .right-panel h1 {
    font-size: 24px;
  }

  .brand img {
    height: 30px;
  }
}

@media (max-width: 590px) {
  .footer {
    position: static;
    padding-bottom: 5px !important;
  }
}

/* ========================================
   OTHER PAGE STYLES (NON-AUTH)
   ======================================== */

/* AI Assistant Buttons */
.btn [data-feather="sparkles"] {
  color: #6366f1;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.ai-expand-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ai-expand-btn:hover {
  background: #f9fafb;
  border-color: #6366f1;
}

.input-group .btn [data-feather="sparkles"] {
  width: 16px;
  height: 16px;
}

.invoices-page .filter-item-box:first-child {
  display: none !important;
}

.input-group .btn [data-feather="sparkles"] {
  width: 16px;
  height: 16px;
}

.task-view-modal-body #sub_task_form {
  display: none !important;
}



/* Theme Toggle Switch */
/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 2.9em;
  height: 1.6em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  --background: #303030;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: .5s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.1em;
  width: 1.1em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  box-shadow: inset 8px -4px 0px 0px #156EF6;
  background: var(--background);
  transition: .5s;
}

input:checked+.slider {
  background-color: #e2e8f0;
}

input:checked+.slider:before {
  transform: translateX(100%);
  box-shadow: inset 15px -4px 0px 15px #156EF6;
}

/* Hide AI Chat Launcher (triggered by topbar button instead) */
#chatLauncher {
  display: none !important;
}

#chatLauncher.open {
  display: flex !important;
}


/* ========================================
   Welcome Header Status Pulse Indicators
   ======================================== */

.status-pulse-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* System Ready / All Caught Up - Green */
.status-pulse-indicator.status-ready,
.status-pulse-indicator.status-complete {
    background: #37b24d;
    box-shadow: 0 0 0 0 rgba(55, 178, 77, 0.4);
    animation: status-pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* In Progress / Delivery Active - Brand Blue */
.status-pulse-indicator.status-active {
    background: #156EF6;
    box-shadow: 0 0 0 0 rgba(21, 110, 246, 0.4);
    animation: status-pulse-blue 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Reviewing Scope - Yellow */
.status-pulse-indicator.status-reviewing {
    background: #FFA500;
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    animation: status-pulse-yellow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Pulse Animations */
@keyframes status-pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(55, 178, 77, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(55, 178, 77, 0);
    }
}

@keyframes status-pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(21, 110, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(21, 110, 246, 0);
    }
}

@keyframes status-pulse-yellow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 165, 0, 0);
    }
}
