@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background-color: #f8faff;
  background-image: 
    radial-gradient(rgba(99, 102, 241, 0.13) 1.2px, transparent 1.2px),
    linear-gradient(180deg, #ffffff 0%, #f0f4ff 50%, #f8faff 100%);
  background-size: 28px 28px, 100% 100%;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Multi-Glow Aurora Background Layers (Light Mode) */
.bg-glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.75;
  will-change: transform;
}

/* Glowing Orb 1: Luminous Cyber Indigo & Blue (Top Left) */
.glow-orb-1 {
  width: 600px;
  height: 600px;
  top: -140px;
  left: 3%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(59, 130, 246, 0.16) 40%, rgba(99, 102, 241, 0) 70%);
  animation: orbFloat1 20s infinite ease-in-out alternate;
}

/* Glowing Orb 2: Electric Emerald & Teal - High-Trust Fintech Green (Bottom Right) */
.glow-orb-2 {
  width: 580px;
  height: 580px;
  bottom: -150px;
  right: 2%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(20, 184, 166, 0.15) 40%, rgba(16, 185, 129, 0) 70%);
  animation: orbFloat2 24s infinite ease-in-out alternate;
}

/* Glowing Orb 3: Soft Violet & Rose (Top Right) */
.glow-orb-3 {
  width: 480px;
  height: 480px;
  top: 15%;
  right: 25%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(244, 114, 182, 0.12) 40%, rgba(168, 85, 247, 0) 70%);
  animation: orbFloat3 18s infinite ease-in-out alternate;
}

/* Glowing Orb 4: Sky Blue & Turquoise (Bottom Left) */
.glow-orb-4 {
  width: 440px;
  height: 440px;
  bottom: 5%;
  left: 5%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.24) 0%, rgba(99, 102, 241, 0.12) 40%, rgba(14, 165, 233, 0) 70%);
  animation: orbFloat1 22s infinite ease-in-out alternate-reverse;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.12); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 30px) scale(1.18); }
  100% { transform: translate(40px, -50px) scale(0.92); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.55; }
  50% { transform: translate(30px, 30px) scale(1.1); opacity: 0.85; }
  100% { transform: translate(-40px, -30px) scale(1); opacity: 0.65; }
}

/* Main Container */
#auth {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1060px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    0 25px 65px -15px rgba(15, 23, 42, 0.08),
    0 0 45px -10px rgba(99, 102, 241, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Single Card Centered Layout (No Right Sidebar) */
.login-container.single-card,
.login-container:not(:has(.login-right)) {
  max-width: 460px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.08),
    0 0 40px -8px rgba(99, 102, 241, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.login-container.single-card .login-left,
.login-container:not(:has(.login-right)) .login-left {
  flex: 1;
  width: 100%;
  padding: 44px 38px;
  background: transparent;
}

.login-container.single-card .logo-wrapper,
.login-container:not(:has(.login-right)) .logo-wrapper {
  text-align: center;
  margin-bottom: 22px;
}

.login-container.single-card .login-left h1,
.login-container:not(:has(.login-right)) .login-left h1 {
  text-align: center;
  font-size: 24px;
}

.login-container.single-card .login-left .subtitle,
.login-container:not(:has(.login-right)) .login-left .subtitle {
  text-align: center;
  font-size: 14px;
  margin-bottom: 26px;
}

/* Left Column: Sign In Form */
.login-left {
  flex: 1.15;
  padding: 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

/* Trust Pill Badge */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  width: fit-content;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.trust-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.logo-wrapper {
  margin-bottom: 20px;
}

.login-left .logo {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.login-left h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.login-left .subtitle {
  color: #64748b;
  font-size: 14.5px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-control-input,
.login-left input[type="text"],
.login-left input[type="email"],
.login-left input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-left .input-container .form-control-input,
.login-left .input-container input {
  padding-left: 42px;
}

.form-control-input:focus,
.login-left input:focus {
  outline: none;
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-control-input:focus ~ .input-icon,
.input-container:focus-within .input-icon {
  color: #10b981;
}

/* Password Toggle Icon */
.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  user-select: none;
}

.password-toggle-btn:hover {
  color: #059669;
}

.password-container input {
  padding-right: 42px;
}

/* Captcha container */
.captcha-container {
  margin: 16px 0 20px 0;
  display: flex;
  flex-direction: column;
}

/* Forgot Password */
.form-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 22px;
}

.forgot-password a {
  color: #059669;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password a:hover {
  color: #047857;
  text-decoration: underline;
}

/* Submit Button (Green Emerald Theme) */
.btn-signin,
.login-left button[type="submit"],
.login-container button[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.38);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-signin:hover,
.login-left button[type="submit"]:hover,
.login-container button[type="submit"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 14px 26px -4px rgba(16, 185, 129, 0.48);
  transform: translateY(-2px);
}

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

/* Messages & Errors */
.message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.error {
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}

/* Trust Footer */
.trust-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.trust-footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-footer-item i {
  color: #10b981;
  font-size: 14px;
}

/* Right Column: Luminous Modern High-Trust Enterprise Showcase */
.login-right {
  flex: 1;
  background: linear-gradient(155deg, #f8faff 0%, #edf2ff 50%, #f0fdf4 100%);
  border-left: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 42px;
  color: #0f172a;
}

.login-right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.login-right::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.right-content {
  position: relative;
  z-index: 2;
  max-width: 420px;
}

/* Hero Badge */
.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.15);
}

.hero-icon-box img,
.right-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hero-badge-tag {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 6px;
}

.login-right h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.login-right p.lead-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 30px;
}

/* Feature Showcase (Clean Modern List) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateX(3px);
}

.feature-item i {
  color: #10b981;
  font-size: 15px;
}

/* Right Footer Verified Status */
.right-footer {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.verified-badge i {
  color: #10b981;
}

.compliance-tag {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: #475569;
  font-size: 11px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .login-container {
    max-width: 750px;
  }
  .login-left {
    padding: 40px 32px;
  }
  .login-right {
    padding: 40px 30px;
  }
  .login-right h2 {
    font-size: 21px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px 12px;
  }
  .login-container {
    flex-direction: column;
    border-radius: 20px;
  }
  .login-right {
    display: none;
  }
  .login-left {
    padding: 36px 24px;
  }
  .login-left h1 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .login-left {
    padding: 28px 18px;
  }
  .trust-pill {
    font-size: 11px;
    padding: 5px 10px;
  }
  .btn-signin {
    padding: 12px 18px;
    font-size: 14.5px;
  }
}
