@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===== Figma Auth Layout - Form Left, Card Right ===== */
.am-main-login {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
  font-family: 'Poppins', 'Roboto', sans-serif;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ── Session Status Alert Styling ── */
.am-session-alert {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f0fdf4;
  border: 1px solid #bdf1d2;
  border-radius: 12px;
  margin-bottom: 24px;
  animation: am-alert-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.05);
}

.am-session-alert_icon {
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.am-session-alert_message {
  color: #166534;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

@keyframes am-alert-slide {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* When the status is an error / caution (optional but good for future) */
.am-session-alert.am-session-alert-error {
  background: #fef2f2;
  border-color: #fee2e2;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.05);
}

.am-session-alert.am-session-alert-error .am-session-alert_icon {
  color: #dc2626;
}

.am-session-alert.am-session-alert-error .am-session-alert_message {
  color: #991b1b;
}


.am-auth-body-row {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: stretch;
  min-height: 0;
}

/* Orange wavy lines decorations */
.am-figma-bg-wave {
  position: absolute;
  width: 300px;
  z-index: 0;
  pointer-events: none;
}

.am-figma-bg-wave-top {
  top: 2px;
  right: 48%;
  width: 387px;
  transform: rotate(5deg);
  opacity: 0.8;
  z-index: 2;
}

.am-figma-bg-wave-bottom {
  bottom: 15px;
  left: -6%;
  width: 352px;
  transform: rotate(1.500deg);
  opacity: 0.8;
  z-index: 2;
}

/* ── Left Column (Form Side) ── */
.am-login-left-side {
  width: 50%;
  padding: 60px 80px 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 1;
  position: relative;
}

.am-login-left-side .am-form-container {
  width: 100%;
  max-width: 440px;
}

/* Logo on top of form */
.am-form-logo {
  padding: 30px 80px 10px 80px;
  width: 100%;
  height: 60px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.am-form-logo a {
  height: auto;
  text-decoration: none !important;
}

.am-form-logo svg {
  height: 32px;
  width: auto;
}


/* Form Headings */
.am-login-right_title {
  text-align: left !important;
  margin-bottom: 40px;
}

.am-login-right_title h2 {
  color: #1a1a1a !important;
  font: 700 2.5rem/1.2em 'Poppins', sans-serif !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 12px;
}

.am-login-right_title h2 em,
.am-login-right_title h2 .am-blue-accent {
  color: #2563EB;
  font-style: normal;
}

.am-login-right_title h3 {
  color: #6b7280 !important;
  font: 400 1rem/1.5em 'Poppins', sans-serif !important;
  letter-spacing: 0 !important;
}

/* ── Right Column (Blue Card Side) ── */
.am-login-right-side {
  width: 50%;
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px 60px 60px 0;
  z-index: 2;
}

.am-figma-blue-card {
  width: 100%;
  height: 100%;
  background: #2563eb;
  border-radius: 40px;
  padding: 80px 50px 0 50px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* White Cutout for Logo on the right side */
.am-logo-cutout {
  position: absolute;
  top: -1px;
  /* Align precisely with top edge */
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0px 60px;
  height: 80px;
  border-radius: 0 0 24px 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: visible;
}

.am-logo-cutout .am-logo-link {
  gap: 8px;
}

/* Decorative grid inside card */
.am-figma-blue-card::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 40px;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
  background-size: 18px 18px;
  z-index: 1;
}

/* Mockup UI Platform */
.am-figma-mockup-wrapper {
  width: 100%;
  max-width: 500px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.am-figma-mockup-card {
  width: 100%;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.am-figma-mockup-card img {
  width: 100%;
  height: auto;
  display: block;
}

.am-mockup-header {
  background: #ffffff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.am-mockup-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 0.875rem 'Poppins';
  color: #1e3a8a;
}

.am-mockup-logo-icon {
  width: 24px;
  height: 24px;
  background: #2563eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Decorations */
.am-decoration {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.am-deco-abcd {
  top: -23%;
  left: 0%;
  transform: rotate(-8deg);
}

.am-deco-pencil {
  top: -28%;
  left: 5%;
  transform: rotate(15deg);
}

.am-deco-arrow {
  top: -3%;
  left: 12%;
  transform: rotate(-10deg);
  animation: am-float 4s ease-in-out infinite;
}

.am-deco-wave-line {
  top: -6%;
  right: 5%;
  transform: rotate(-5deg);
}

/* 2×2 dot grid in top-right corner of the blue card */
.am-deco-dot-white-1 {
  top: 28px;
  right: 68px;
}

.am-deco-dot-white-2 {
  top: 56px;
  right: 68px;
}

.am-deco-dot-orange-1 {
  top: 28px;
  right: 40px;
}

.am-deco-dot-orange-2 {
  top: 56px;
  right: 40px;
}

@keyframes am-float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Floating Elements Refinement - Unified styling */
.am-floating-badge,
.am-session-info {
  background: rgb(255 255 255 / 18%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15) !important;
  border-radius: 16px !important;
  z-index: 10;
}

.am-floating-badge {
  position: absolute;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  top: 45%;
  right: -12%;
}

.am-badge-students {
  top: -20%;
  right: 5%;
}

.am-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-icon-blue {
  background: #3b82f6;
}

.am-icon-orange {
  background: #f97316;
}

.am-badge-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: #1e293b;
}

.am-badge-subtitle {
  font-size: 0.6875rem;
  color: #64748b;
}

.am-congrats-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Session Info Card (User Experience Class) */
.am-session-info {
  position: absolute;
  top: 4%;
  left: -2%;
  padding: 16px 20px;
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.am-session-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Circular avatar wrapper with green dot */
.am-session-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.am-session-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: block;
}

.am-session-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid white;
  display: block;
}

.am-session-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.2;
}

.am-session-subtitle {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
}

.am-join-btn {
  margin-top: 0;
  width: 100%;
  border: none;
  background: #ef4444;
  color: white;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}

.am-join-btn:hover {
  background: #dc2626;
}

/* Mockup UI Platform Simplified */
.am-figma-mockup-card {
  width: 100%;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.am-visual-bg {
  display: none;
}

.am-visual-students {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding-bottom: 20px;
}

.am-student {
  border-radius: 10px 10px 0 0;
}

.am-student.main {
  width: 40px;
  height: 60px;
  background: #3b82f6;
}

.am-student.secondary {
  width: 32px;
  height: 48px;
  background: #94a3b8;
}

/* ── Form Styling Overrides ── */
/* .am-login-form .form-group removed as it was empty */


.am-login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.9375rem;
}

.am-login-form .form-control {
  height: 56px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 20px !important;
  font-size: 1rem !important;
  background: #ffffff !important;
}

.am-login-form .am-btn {
  height: 56px !important;
  border-radius: 14px !important;
  background: #2563eb !important;
  font-weight: 700 !important;
  font-size: 1.0625rem !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}

/* Social Buttons */
.am-figma-social-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.am-signinoption_btn {
  flex: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  z-index: 10;
}

.am-signinoption_btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.am-signinoption_br {
  display: flex;
  align-items: center;
  margin: 0px 0px 24px 0px;
  color: #6b7280;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Already have account / Create account */
.am-already-account {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #4b5563;
  font-size: 0.9375rem;
}

.am-already-account a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
}

/* Responsive */
@media (max-width: 1200px) {
  .am-login-left-side {
    padding: 60px 40px;
  }
}

@media (max-width: 1024px) {
  .am-login-left-side {
    width: 100%;
    padding: 60px 40px;
  }

  .am-login-right-side {
    display: none;
  }

  .am-figma-bg-wave {
    display: none;
  }
}

/* ══════════════════════════════════════════
   Registration Form Specific Styles
   ══════════════════════════════════════════ */

/* Registration left side: compact so all fields fit */
.am-login-left-side:has(.am-signup-form) {
  justify-content: flex-start;
  padding-top: 30px;
  padding-bottom: 40px;
  overflow-y: auto;
}

/* First Name + Last Name row side by side */
.am-form-group-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.form-group-half {
  flex: 1;
  min-width: 0;
}

.form-group-half label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.9375rem;
}

.form-group-half .form-control {
  height: 56px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 20px !important;
  font-size: 1rem !important;
  background: #ffffff !important;
  width: 100%;
}

/* Role Dropdown Select */
.am-select-role-wrap {
  position: relative;
  width: 100%;
}

.am-role-select {
  width: 100%;
  height: 56px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 48px 0 20px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background: #ffffff !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.am-role-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.am-role-select option[value=""] {
  color: #9ca3af;
}

.am-select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Terms & Conditions checkbox */
.am-terms-check .am-signup-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.am-terms-check .am-signup-check input[type="checkbox"] {
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.am-terms-check .am-signup-check label {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
  cursor: pointer;
}

.am-terms-check .am-signup-check label a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

/* Registration page logo adjustments */
.am-login-right_title {
  margin-bottom: 28px;
}

/* Compact form title for register */
.am-signup-form .am-login-right_title h2 {
  font-size: 2rem !important;
  margin-bottom: 8px;
}

/* Responsive: stack name fields on mobile */
@media (max-width: 600px) {
  .am-form-group-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ══════════════════════════════════════════
   Centered Auth Pages (Forgot / Reset Password)
   No left/right split — single centered card
   ══════════════════════════════════════════ */

.am-center-auth-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', 'Roboto', sans-serif;
}

.am-center-wave {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.am-center-wave-top {
  top: -1px;
  right: -40px;
  width: 340px;
  transform: rotate(5deg);
  opacity: 0.85;
}

.am-center-wave-bottom {
  bottom: 0px;
  left: -60px;
  width: 320px;
  transform: rotate(1.5deg);
  opacity: 0.85;
}

.am-center-auth-logo {
  margin-bottom: 36px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-center-auth-logo svg {
  height: 36px;
  width: auto;
}

/* Top-left positioned logo (Figma style) */
.am-center-auth-logo-topleft {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.am-center-auth-logo-topleft svg,
.am-center-auth-logo-topleft .am-logo-link {
  height: 60px;
  width: auto;
  overflow: visible;
}

@media (max-width: 600px) {
  .am-center-auth-logo-topleft {
    top: 20px;
    left: 20px;
  }
}

.am-center-auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 48px 48px 40px 48px;
  z-index: 1;
  position: relative;
}

/* No-card variant: removes border/shadow, floats on page background */
.am-center-auth-card.am-nocard {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 48px 32px 40px 32px !important;
}

.am-center-auth-card .am-login-right_title {
  text-align: center !important;
  margin-bottom: 28px;
}

.am-center-auth-card .am-login-right_title h2 {
  font-size: 2rem !important;
  margin-bottom: 8px;
}

.am-center-auth-card .am-login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.9375rem;
}

.am-center-auth-card .am-login-form .form-control {
  height: 56px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 20px !important;
  font-size: 1rem !important;
  background: #ffffff !important;
  width: 100%;
}

.am-center-auth-card .am-login-form .am-btn {
  height: 56px !important;
  border-radius: 14px !important;
  background: #2563eb !important;
  font-weight: 700 !important;
  font-size: 1.0625rem !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}

.am-center-auth-card .am-already-account {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.9375rem;
}

.am-center-auth-card .am-already-account a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 600px) {
  .am-center-auth-card {
    padding: 32px 24px;
  }
}

/* ══════════════════════════════════════════
   Centered Auth Pages — Heading, Subtitle & Button Refinements
   Matches Figma: "Forgot Password!", "Create New Password!", "Verify Your Account"
   ══════════════════════════════════════════ */

/* Heading: dark base, blue <em> accent */
.am-center-auth-card .am-login-right_title h2 {
  font-size: 2.125rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 12px !important;
  font-family: 'Poppins', sans-serif !important;
}

.am-center-auth-card .am-login-right_title h2 em {
  color: #2563EB !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

/* Subtitle / h3 below heading */
.am-center-auth-card .am-login-right_title h3 {
  color: #6b7280 !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

/* OTP subtitle paragraph */
.am-otp-subtitle {
  color: #6b7280 !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Primary button inside centered auth card */
.am-center-auth-card .am-login-form .am-btn,
.am-center-auth-card .am-login-form button[type="submit"].am-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 52px !important;
  background: #2563EB !important;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

.am-center-auth-card .am-login-form .am-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px) !important;
}

.am-center-auth-card .am-login-form .am-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
}

.am-center-auth-card .am-login-form .am-btn.am-btn_disable {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
}

/* Input fields inside centered auth card */
.am-center-auth-card .am-login-form .form-control,
.am-center-auth-card .am-login-form input[type="email"],
.am-center-auth-card .am-login-form input[type="password"],
.am-center-auth-card .am-login-form input[type="text"] {
  height: 52px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e5e7eb !important;
  padding: 0 18px !important;
  font-size: 0.9375rem !important;
  font-family: 'Poppins', sans-serif !important;
  color: #111827 !important;
  background: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100% !important;
}

.am-center-auth-card .am-login-form .form-control:focus,
.am-center-auth-card .am-login-form input:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
  outline: none !important;
}

/* Labels */
.am-center-auth-card .am-login-form label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  font-size: 0.9375rem !important;
  font-family: 'Poppins', sans-serif !important;
}

/* "Back to login" arrow link */
.am-center-auth-card .am-already-account,
.am-center-auth-card .am-login-form .am-already-account {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 4px !important;
  font-size: 0.9375rem !important;
  color: #4b5563 !important;
  font-weight: 500 !important;
}

.am-center-auth-card .am-already-account a,
.am-center-auth-card .am-login-form .am-already-account a {
  color: #2563EB !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.2s !important;
}

.am-center-auth-card .am-already-account a:hover {
  color: #1d4ed8 !important;
}

.am-center-auth-card .am-already-account svg {
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

/* ══════════════════════════════════════════
   OTP / Verify Page Specific Styles
   ══════════════════════════════════════════ */

.am-otp-card .am-otp-title {
  text-align: center !important;
  margin-bottom: 32px !important;
}

/* Row of 6 OTP digit boxes */
.am-otp-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

/* Individual OTP digit box */
.am-otp-box {
  width: 56px !important;
  height: 56px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e5e7eb !important;
  font-size: 1.375rem !important;
  font-weight: 700 !important;
  font-family: 'Poppins', sans-serif !important;
  color: #111827 !important;
  text-align: center !important;
  background: #ffffff !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  caret-color: #2563EB !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.am-otp-box::-webkit-outer-spin-button,
.am-otp-box::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.am-otp-box:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.am-otp-box.am-otp-filled {
  border-color: #2563EB !important;
}

/* Resend row */
.am-otp-resend-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #6b7280 !important;
  font-size: 0.9375rem !important;
}

.am-otp-resend-row a {
  color: #2563EB !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.am-otp-resend-row a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* Responsive OTP boxes */
@media (max-width: 480px) {
  .am-otp-box {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.125rem !important;
    border-radius: 8px !important;
  }

  .am-otp-inputs-row {
    gap: 8px;
  }
}

/* ══════════════════════════════════════════
   Reset Link Sent — Success Modal
   Matches Figma: logo + message + Check mail button + X close
   ══════════════════════════════════════════ */

.am-reset-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: am-overlay-in 0.2s ease;
}

@keyframes am-overlay-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.am-reset-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  padding: 48px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: am-modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes am-modal-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* X Close button */
.am-reset-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.am-reset-modal-close:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

/* Logo inside modal */
.am-reset-modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.am-reset-modal-logo svg,
.am-reset-modal-logo .am-logo-link {
  height: 34px;
  width: auto;
}

/* "Reset link sent…" text */
.am-reset-modal-msg {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1875rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.55;
  margin: 0 0 32px 0;
}

/* Check mail button */
.am-reset-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: #2563EB;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  letter-spacing: 0.01em;
}

.am-reset-modal-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.am-reset-modal-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .am-reset-modal {
    padding: 40px 24px 32px 24px;
    border-radius: 16px;
  }
}