.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.auth-box {
  position: relative;
  background: #fff;
  width: 420px;
  max-width: 95%;
  border-radius: 12px;
  padding: 30px;
  z-index: 2;
  animation: fadeInUp .3s ease;
}

.auth-close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: none;
  background: transparent;
  font-size: 22px;
}

.auth-btn {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #1e293b;
  background: #fff;
  font-weight: 550;
}

.auth-btn.primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}


/* AUTH MODAL CARD */
.auth-modal-card {
  background: #fff;
  max-width: 480px;
  margin: auto;
  padding: 40px 35px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Close Button */
.auth-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Title */
.auth-title {
  font-weight: 700;
  margin-bottom: 8px;
}

/* Subtitle */
.auth-subtitle {
  color: #6c757d;
  font-size: small;
}

/* OTP Inputs Container */
.otp-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Individual OTP Boxes */
.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* Resend text */
.resend-text {
  font-size: 14px;
  color: #6c757d;
}

.resend-link {
  color: #0d6efd;
  cursor: pointer;
  font-weight: 600;
}



.auth-card {
  max-width: 420px;
  margin: auto;
}

.auth-title {
  font-weight: 550;
  font-size:medium;
  margin-bottom: 10px;
}

.auth-subtitle {
  color: #5f6b7a;
}

.auth-input-group label {
  font-weight: 550;
  display: block;
  font-size: small;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border-radius: 8px;
  font-size: small;
  border: 1px solid #ddd;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  color: #777;
}

.auth-terms {
  font-size: small;
  color: #555;
  margin-bottom: 5px;
  margin-top: 5px;
}

.auth-terms a {
  font-weight: 550;
  text-decoration: underline;
  color: #000;
}

.strength-text {
  font-size: small;
}

.strength-bar {
  height: 6px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

#strengthFill {
  height: 100%;
  width: 20%;
  background: red;
  transition: 0.3s;
}

.password-rules {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  font-size: small;
}

.password-rules ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.error-text {
  color: red;
  font-size: small;
}


.suggest-pass button {
  background: none;
  border: none;
  color: #094701;
  cursor: pointer;
  padding: 0;
  font-size: small;
}

.header-profile-icon{
  font-size: 22px;
}

.auth-back-btn{
  font-size: 18px; 
  float:left
}


.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 8px 12px;
  background: #f9fafb;
}

.phone-flag {
  font-size: 22px;
  margin-right: 10px;
}

.phone-code {
  font-weight: 600;
  margin-right: 8px;
  color: #111;
}

.phone-input-wrapper input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 15px;
  outline: none;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  gap: 10px;
}

.country-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid #ddd;
  padding-right: 10px;
}

.phone-input-wrapper input {
  border: none;
  flex: 1;
  background: transparent;
  outline: none;
  font-size: 15px;
}

.country-dropdown {
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
  padding: 8px 0;
  position: absolute;
  z-index: 9999;
  width: 320px;
}

.country-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-option:hover {
  background: #f3f4f6;
}