/* login-register-css.css - SewaLok auth popup */

/* Overlay */
.sewalok-auth-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Box */
.sewalok-auth-box {
  width: 420px;
  max-width: 96%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  padding: 22px;
  transform-origin: center center;
}

/* Tabs */
.sewalok-tabs { display:flex; gap:10px; margin-bottom:16px; }
.tab-btn {
  flex:1; padding:10px 12px; border-radius:8px; border: none;
  background:#eef4f8; color:#234; font-weight:700; cursor:pointer; font-size:15px;
}
.tab-btn.active { background:#4e7ba2; color:#fff; }

/* Form */
.sewalok-form { display:none; flex-direction:column; gap:10px; }
.sewalok-form.active { display:flex; }
.sewalok-form h3 { margin:0 0 6px 0; text-align:center; color:#4e7ba2; }

/* Inputs */
.sewalok-form label {
  font-weight:600;
  font-size:14px;
  color:#333;
}

.sewalok-form input {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #d7dbe0;
  font-size:15px;
  outline:none;
  box-sizing:border-box;
  /* अब सभी फील्ड lowercase नहीं होंगे */
}

/* केवल email और username lowercase रहेंगे */
#register-email,
#register-username,
#login-email,
#forgot-email {
  text-transform: lowercase;
}

.sewalok-form input:focus {
  box-shadow:0 0 6px rgba(78,123,162,0.18);
  border-color:#4e7ba2;
}


/* Password eye icon wrapper */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* icon के लिए जगह */
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.password-wrapper .toggle-password:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Buttons */
.sewalok-btn {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 10px 0;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4e7ba2, #345f86);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transform: translateZ(0); /* fixes layout shifts */
}

/* Hover - subtle glow, no lift */
.sewalok-btn:hover {
  box-shadow: 0 0 12px rgba(78,123,162,0.4);
  background: linear-gradient(135deg, #5e8fbb, #3e6f9a);
}

/* Active (press) - pressed look only, no scale */
.sewalok-btn:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.25);
  filter: brightness(0.95);
}

/* Ripple animation */
.sewalok-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.sewalok-btn:active::after {
  width: 220%;
  height: 220%;
  opacity: 0;
  transition: 0s;
}


/* Alerts */
.sewalok-alert { min-height:20px; text-align:center; display:none; margin-bottom:4px; }
.sewalok-alert.error { color:#e11d48; display:block; }
.sewalok-alert.success { color:#16a34a; display:block; }

/* Forgot link */
.forgot-link { text-align:center; margin-top:8px; }
.forgot-link a { color:#4e7ba2; text-decoration:none; font-weight:600; }

/* OTP block */
.sewalok-otp-area { margin-top:6px; display:flex; gap:8px; align-items:center; flex-direction:column; }
.sewalok-otp-countdown { color:#4e7ba2; font-weight:600; margin-top:6px; }

/* Responsive */
@media (max-width:480px) {
  .sewalok-auth-box { width: 92%; padding:18px; }
  .tab-btn { font-size:14px; padding:8px 10px; }
}


/* ========== Remember Me Checkbox ========== */
.remember-wrapper {
  display: flex;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #333;
}

.remember-wrapper label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 6px;
}

.remember-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sewalok-theme);
  cursor: pointer;
  margin: 0;
}

.remember-wrapper .label-text {
  user-select: none;
}

