/* =========================
   LOGIN PAGE LAYOUT
========================= */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% split */
  height: 100vh;
  width: 100%;
}

/* --- Left Side: Visual --- */
.login-visual {
  position: relative;
  background: #111827;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  color: white;
}

/* The Abstract Blue Gradient Background */
.visual-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.8) 0%, transparent 40%),
    linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 100%);
  z-index: 1;
}

.visual-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.logo-white img {
  width: 220px;
  margin-bottom: 40px;
}

.visual-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  margin-top: auto; /* Pushes text down */
}

.visual-content p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 400px;
  line-height: 1.5;
}

.visual-footer {
  margin-top: 40px;
  font-size: 0.85rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Right Side: Form --- */
.login-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 40px;
}

.form-box {
  width: 100%;
  max-width: 400px;
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.form-header p {
  color: #6b7280;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.modern-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: #f9fafb;
}

.modern-input:focus {
  background-color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  outline: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.forgot-link {
  font-size: 0.85rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.full-width {
  width: 100%;
  height: 48px;
  font-size: 1rem;
  font-weight: 600;
}

.error-banner {
  margin-top: 16px;
  padding: 10px;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.hidden { display: none; }

.form-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none; /* Hide visual on small screens for cleaner login */
  }
}