/* =====================================================
   MODERN SAAS AUTH UI – EXAMNITI
===================================================== */

/* ===============================
   PAGE BACKGROUND
================================ */
body.page-login,
body.page-register {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  position: relative;
  overflow-x: hidden;
}

/* Soft Glow Background Effect */
body.page-login::before,
body.page-register::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(37,99,235,0.15), transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  z-index: 0;
}

/* ===============================
   AUTH WRAPPER
================================ */
.exn-auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ===============================
   AUTH CARD
================================ */
.exn-auth-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
  border: 1px solid #eef2ff;
  animation: fadeInUp .4s ease;
}

@keyframes fadeInUp {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}

/* ===============================
   CLEAN PROFESSIONAL TABS
================================ */

.exn-auth-tabs {
  display: flex;
  background: #e2e8f0;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 28px;
  position: relative;
}

.exn-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: #475569;
  border-radius: 10px;
  transition: 0.3s ease;
  z-index: 2;
}

.exn-tab.active {
  color: #ffffff;
}

.exn-tab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  border-radius: 10px;
  transition: transform 0.35s ease;
  z-index: 1;
}

.exn-auth-tabs .exn-tab:nth-child(n+4) {
  display: none;
}


/* ===============================
   FORMS
================================ */
.exn-auth-form {
  display: none;
}
.exn-auth-form.active {
  display: block;
}

/* ===============================
   INPUT FIELDS
================================ */
.exn-field {
  position: relative;
  margin-bottom: 18px;
}

.exn-field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 14px;
  transition: all .25s ease;
}

.exn-field input:focus {
  outline: none;
  border: 1px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Floating Label */
.exn-field.floating label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: .25s ease;
  background: #fff;
  padding: 0 6px;
}

.exn-field.floating input:focus + label,
.exn-field.floating input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #2563eb;
}

/* ===============================
   PRIMARY BUTTON
================================ */
.exn-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
}

.exn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37,99,235,0.25);
}

.exn-btn.loading {
  pointer-events: none;
  opacity: .7;
}

/* ===============================
   OTP PREMIUM BOX
================================ */
.exn-otp-boxes {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 10px;
}

.exn-otp-digit {
  width: 48px;
  height: 55px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  background: #f8fafc;
  transition: 0.3s ease;
}

.exn-otp-digit:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.exn-otp-success {
  border-color: #22c55e !important;
  background: #ecfdf5 !important;
}

/* Shake animation */
.exn-otp-boxes.exn-shake {
  animation: exnShake 0.4s;
}
@keyframes exnShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

/* =====================================
   CLEAN PROFESSAL MODAL POPUP
===================================== */

#exnAuthPopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);   /* DARK OVERLAY */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

/* Active */
#exnAuthPopup.active {
  opacity: 1;
  visibility: visible;
}

/* =====================================
   MODAL CARD
===================================== */

.exn-popup-box {
  width: 92%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  padding: 38px 32px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,0.25);
  transform: translateY(15px);
  transition: transform .25s ease;
}

#exnAuthPopup.active .exn-popup-box {
  transform: translateY(0);
}

/* =====================================
   TITLE
===================================== */

.exn-popup-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

/* =====================================
   MESSAGE
===================================== */

.exn-popup-box p {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* =====================================
   BUTTON GROUP
===================================== */

.exn-popup-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.exn-popup-actions button {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: .2s ease;
}

/* PRIMARY BUTTON */
#exnPopupPrimary {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
}

#exnPopupPrimary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.35);
}

/* SECONDARY BUTTON */
#exnPopupSecondary {
  background: #e5e7eb;
  color: #374151;
}

#exnPopupSecondary:hover {
  background: #d1d5db;
}

body.popup-open {
  overflow: hidden;
}


/* ===============================
   TRUST TEXT
================================ */
.exn-trust {
  text-align:center;
  margin-top:20px;
  font-size:13px;
  color:#64748b;
}

/* ===============================
   GOOGLE LOGIN FIX
================================ */

/* Stop Google SVG / iframe from exploding */
.exn-google-btn svg,
.exn-google-btn img,
.exn-google-btn iframe {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* Proper button alignment */
.exn-google-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  height: 48px;
  overflow: hidden;
}

/* If Google injects wrapper */
.exn-google-btn > div {
  display: flex !important;
  align-items: center !important;
}


/* ===============================
   MOBILE
================================ */
@media (max-width: 480px) {
  .exn-auth-card {
    padding: 26px;
    border-radius: 18px;
  }

  .exn-field input,
  .exn-btn {
    height: 48px;
  }
}

