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

* {
  box-sizing: border-box;
}

body.login-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background-color: #f8fafc;
}

/* ============================================================
   LEFT SIDE — animated gradient mesh + feature list
   ============================================================ */
.login-left-side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0f172a 0%, #14213d 45%, #1d3a6b 100%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: float-orb 14s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -100px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  bottom: -120px; right: -60px;
  opacity: 0.35;
  animation-delay: -5s;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.25;
  animation-delay: -9s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.left-content {
  max-width: 560px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.7s ease-out;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #60a5fa;
  backdrop-filter: blur(8px);
}
.brand-mark-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.08rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 460px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
  animation: fadeInUp 0.7s ease-out backwards;
}
.feature-row:nth-child(1) { animation-delay: 0.15s; }
.feature-row:nth-child(2) { animation-delay: 0.28s; }
.feature-row:nth-child(3) { animation-delay: 0.41s; }

.feature-row:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,0.08);
}

.feature-row .feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #93c5fd;
}

.feature-row h5 {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
}
.feature-row small {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

/* ============================================================
   RIGHT SIDE — form
   ============================================================ */
.login-right-side {
  background-color: #ffffff;
  position: relative;
}

.login-card {
  max-width: 440px;
  animation: fadeInUp 0.6s ease-out;
}

.brand-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.login-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  display: block;
  text-align: left;
  margin-bottom: 6px;
}

.input-group {
  border-radius: 12px;
  transition: all 0.2s ease;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
}

.input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background: #ffffff;
}

.input-group-text {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding-left: 14px;
  padding-right: 8px;
}

.input-group-text.toggle-password {
  cursor: pointer;
  padding-left: 8px;
  padding-right: 14px;
  transition: color 0.15s ease;
}
.input-group-text.toggle-password:hover {
  color: #3b82f6;
}

.form-control {
  border: none;
  background: transparent;
  color: #0f172a;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  box-shadow: none !important;
}

.form-control:focus {
  background: transparent;
  box-shadow: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* Fix browser autofill styling */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: #0f172a !important;
}

.form-check-input {
  cursor: pointer;
}
.form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}
.form-check-label {
  color: #64748b;
  font-size: 0.86rem;
  cursor: pointer;
}

.forgot-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.forgot-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Button */
.login-submit-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.38);
  color: #fff;
}

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

.login-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  body.login-body {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .login-right-side {
    min-height: 100vh;
  }
}