/* ══════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════ */

.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px - 73px);
}

/* ── LEFT PANEL ── */
.login-left {
  background: linear-gradient(145deg, #0f2447 0%, #1e40af 60%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

.left-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.left-logo {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.left-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.left-subtitle {
  font-size: 16px;
  opacity: 0.75;
  font-weight: 500;
  margin-bottom: 32px;
}

.left-divider {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  margin: 0 auto 32px;
}

.left-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}

.stat-item:hover { transform: translateX(6px); }

.stat-icon {
  font-size: 28px;
  width: 44px;
  text-align: center;
}

.stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  opacity: 0.65;
  margin-top: 2px;
}

.left-desc {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 340px;
}

/* ── FLOATING BUBBLES ── */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: floatBubble 6s ease-in-out infinite;
}

.bubble-1 {
  width: 200px; height: 200px;
  top: -60px; right: -60px;
  animation-delay: 0s;
}

.bubble-2 {
  width: 140px; height: 140px;
  bottom: 40px; left: -40px;
  animation-delay: 2s;
}

.bubble-3 {
  width: 80px; height: 80px;
  top: 50%; right: 30px;
  animation-delay: 4s;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

/* ── RIGHT PANEL ── */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f8fafc;
}

.login-box {
  width: 100%;
  max-width: 420px;
}

/* ── LOGIN HEADER ── */
.login-header {
  margin-bottom: 32px;
}

.login-header h2 {
  font-size: 26px;
  font-weight: 900;
  color: #0f2447;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-header p {
  font-size: 14px;
  color: #64748b;
}

/* ── FORM INPUTS ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 12px;
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.forgot-link:hover { color: #0f2447; text-decoration: underline; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  padding: 13px 44px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  color: #0f2447;
  background: #fff;
  transition: all 0.2s;
  outline: none;
}

.input-wrap input:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 4px rgba(30,64,175,0.08);
}

.input-wrap input::placeholder { color: #94a3b8; }

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.5;
  transition: opacity 0.15s;
  padding: 0;
}

.toggle-password:hover { opacity: 1; }

/* ── REMEMBER ME ── */
.remember-row {
  margin-top: -8px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e40af;
  cursor: pointer;
}

/* ── LOGIN BUTTON ── */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1e40af 0%, #0f2447 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(30,64,175,0.3);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,64,175,0.4);
}

.btn-login:active { transform: translateY(0); }

.btn-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.btn-login:hover .btn-arrow { transform: translateX(4px); }

/* ── DIVIDER ── */
.login-divider {
  text-align: center;
  margin: 24px 0 16px;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: #e2e8f0;
}

.login-divider span {
  position: relative;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* ── REGISTER BUTTON ── */
.btn-register {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-register:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

/* ── LOADING STATE ── */
.btn-login.loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-login.loading .btn-text::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-left {
    padding: 48px 24px;
    min-height: 300px;
  }

  .left-stats {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-item { flex: 1; min-width: 140px; }

  .login-right { padding: 40px 20px; }
}

/* ── OTP VISUAL ── */
.otp-visual {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.otp-box {
  width: 42px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

.otp-box:nth-child(1) { animation-delay: 0.1s; }
.otp-box:nth-child(2) { animation-delay: 0.2s; }
.otp-box:nth-child(3) { animation-delay: 0.3s; }
.otp-box:nth-child(4) { animation-delay: 0.4s; }
.otp-box:nth-child(5) { animation-delay: 0.5s; }
.otp-box:nth-child(6) { animation-delay: 0.6s; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}