/* =====================================================
   EXAMNITI AUTH SYSTEM – LOGIN / REGISTER / OTP
===================================================== */


/* ===============================
   AUTH PAGE BACKGROUND
================================ */
body.page-login,
body.page-register {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  font-family: 'Inter', system-ui, sans-serif;
}


/* ===============================
   AUTH SCREEN WRAPPER
================================ */
.exn-auth-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}


/* ===============================
   AUTH CARD
================================ */
.exn-auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  max-width: 420px;
  width: 100%;
  transition: .3s ease;
}

.exn-auth-card:hover {
  transform: translateY(-3px);
}


/* ===============================
   TABS (LOGIN / REGISTER)
================================ */
.exn-auth-tabs {
  display: flex;
  position: relative;
  margin-bottom: 30px;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 6px;
}

.exn-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: .2s ease;
}

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


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

.exn-auth-form.active {
  display: block;
}


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

.exn-field input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  background: #f8fafc;
  transition: .3s ease;
}

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

.exn-field label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 13px;
  color: #6b7280;
  transition: .2s ease;
  pointer-events: none;
}

.exn-field input:focus + label,
.exn-field input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  background: #ffffff;
  padding: 0 6px;
  font-size: 11px;
  color: #2563eb;
}


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

.exn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}


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


/* ===============================
   OTP BOXES
================================ */
.exn-otp-boxes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 15px 0;
}

.exn-otp-digit {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 18px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

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

.exn-otp-timer {
  font-size: 13px;
  text-align: center;
  color: #6b7280;
  margin-top: 10px;
}


/* ===============================
   ALERT BOX
================================ */
.exn-auth-alert {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}

.exn-auth-alert.success {
  background: #ecfdf5;
}


/* ===============================
   GOOGLE BUTTON
================================ */
.exn-divider {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 20px 0;
}

.exn-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: .3s ease;
}

.exn-google-btn img {
  width: 20px;
}

.exn-google-btn:hover {
  background: #f1f5f9;
}


/* ===============================
   POPUP OVERLAY
================================ */
.exn-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.exn-popup-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  width: 350px;
  text-align: center;
}

.exn-popup-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.exn-popup-actions .ghost {
  background: #f3f4f6;
  color: #111827;
}


/* ===============================
   MOBILE RESPONSIVE
================================ */
@media(max-width:480px){

  .exn-auth-card {
    padding: 25px;
  }

  .exn-otp-digit {
    width: 38px;
    height: 45px;
  }

}
