/* ============================================================
   iLeap Login Page — Centered Card Theme
   ============================================================ */

.il-login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family, 'Inter', sans-serif);
  background: linear-gradient(135deg, #881337 0%, #9F1239 40%, #BE123C 75%, #E11D48 100%);
  padding: 24px;
  overflow: auto;
}

/* Background animated elements */
.il-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  animation: il-blob-move 10s ease-in-out infinite;
}
.il-blob-1 { width: 450px; height: 450px; background: white; top: -120px; right: -100px; animation-duration: 12s; }
.il-blob-2 { width: 350px; height: 350px; background: white; bottom: -100px; left: -80px; animation-duration: 14s; animation-delay: -3s; }
.il-blob-3 { width: 220px; height: 220px; background: #FECDD3; top: 40%; left: 10%; animation-duration: 8s; animation-delay: -1.5s; opacity: 0.2; }

.il-login-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

@keyframes il-blob-move {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Centered Card */
.il-login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 4px 15px rgba(136, 19, 55, 0.15);
  animation: il-card-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes il-card-pop {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card Header */
.il-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.il-login-brand-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #FFF1F2 0%, #FECDD3 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.15);
}

.il-prism-logo {
  width: 32px;
  height: 32px;
}

.il-login-brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px;
  letter-spacing: -0.025em;
}

.il-login-brand-title span {
  color: #E11D48;
}

.il-login-brand-sub {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0;
}

/* Fields */
.il-login-field {
  margin-bottom: 20px;
}

.il-login-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.il-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

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

.il-login-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 40px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0F172A;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.il-login-input::placeholder {
  color: #CBD5E1;
}

.il-login-input:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.il-login-input:focus {
  border-color: #E11D48;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.il-login-input:focus ~ .il-input-icon {
  color: #E11D48;
}

.il-login-eye {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #94A3B8;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.il-login-eye:hover {
  color: #E11D48;
}

/* Options */
.il-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.il-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.il-login-remember input[type="checkbox"] {
  accent-color: #E11D48;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.il-login-remember span {
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 500;
}

.il-login-forgot {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #E11D48;
  text-decoration: none;
  transition: color 0.2s ease;
}

.il-login-forgot:hover {
  color: #BE123C;
  text-decoration: underline;
}

/* Submit Button */
.il-login-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
}

.il-login-btn:hover {
  background: linear-gradient(135deg, #BE123C 0%, #9F1239 100%);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
  transform: translateY(-1px);
}

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

.il-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Footer */
.il-login-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
  text-align: center;
  font-size: 0.75rem;
  color: #94A3B8;
}

/* Responsive */
@media (max-width: 480px) {
  .il-login-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
}
