/* NAVIGATION BAR */
.login-navbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.login-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-nav-logo:hover {
  opacity: 0.8;
}

.login-nav-signup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.signup-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.signup-link:hover {
  color: #1d4ed8;
}

/* MAIN CONTAINER */
.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem;
}

.login-container {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

/* LOGIN CARD */
.login-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* LEFT COLUMN - ILLUSTRATION */
.login-visual {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-container {
  width: 100%;
  max-width: 400px;
}

.login-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.15));
}

/* RIGHT COLUMN - FORM */
.login-form-container {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-container h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.email-display {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.change-email-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.change-email-btn:hover {
  color: #2563eb;
}

/* FORM STYLES */
.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.25rem;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 50px;
  padding: 0 1rem 0 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper input::placeholder {
  color: #9ca3af;
}

/* OTP INPUTS */
.otp-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: all 0.2s;
  background: white;
}

.otp-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: scale(1.05);
}

.otp-input.filled {
  border-color: #10b981;
  background: #f0fdf4;
}

/* BUTTONS */
.login-btn {
  width: 100%;
  height: 50px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.login-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* TRUST INDICATOR */
.trust-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.lock-icon {
  font-size: 1rem;
}

/* OTP FOOTER */
.otp-footer {
  margin-top: 1rem;
  text-align: center;
}

.resend-text {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.resend-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.resend-btn:hover:not(:disabled) {
  color: #1d4ed8;
  text-decoration: underline;
}

.resend-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}
.footer-links a:hover {
    color: #000 !important;
}
.expiry-timer {
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 600;
}

.expiry-timer.warning {
  animation: pulse-warning 1s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.loading-content {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  text-align: center;
  max-width: 400px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.loading-content p {
  color: #6b7280;
}

/* SUCCESS OVERLAY */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.success-content {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  text-align: center;
  max-width: 400px;
}

.success-icon {
  margin-bottom: 1.5rem;
}

.success-circle {
  animation: scale-in 0.5s ease-out;
}

.success-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.5s ease-out 0.3s forwards;
}

@keyframes scale-in {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.success-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.success-content p {
  color: #6b7280;
}

/* ERROR MESSAGE */
.error-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 2px solid #ef4444;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
  z-index: 1001;
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.error-content {
  position: relative;
  text-align: center;
}

.error-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.error-close:hover {
  background: #dc2626;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.error-content p {
  color: #6b7280;
  margin-bottom: 1rem;
}

.attempts-remaining {
  font-weight: 600;
  color: #dc2626;
  font-size: 0.875rem;
}

.error-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

.error-btn:hover {
  background: #dc2626;
}

/* TRIAL BANNER */
.trial-banner {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
}

.trial-content {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #2563eb;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.trial-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.trial-subtitle {
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}

.trial-btn {
  display: inline-block;
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.trial-btn:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* HELP SECTION */
.help-section {
  width: 100%;
  max-width: 900px;
  text-align: center;
  margin-bottom: 2rem;
}

.help-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.footer-links a:hover {
    color: #000;
}
.help-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.help-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* FOOTER */
.login-footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-links span {
  color: #d1d5db;
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-form-container {
    padding: 2rem;
  }

  .login-form-container h1 {
    font-size: 1.75rem;
  }

  .otp-inputs {
    gap: 0.5rem;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .login-nav-signup span {
    display: none;
  }

  .help-links {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .login-main {
    padding: 2rem 1rem;
  }

  .login-form-container {
    padding: 1.5rem;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}
