/* Wrapper */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f6f8;
}

/* Card */
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

/* Title */
.login-card h2 {
  margin-bottom: 5px;
}

.sub-text {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* Tabs */
.login-tabs {
  display: flex;
  background: #f1f1f1;
  border-radius: 25px;
  padding: 5px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.tab.active {
  background: #ff3f6c;
  color: #fff;
}

/* Slider */
.form-slider {
 
  min-height: 140px;
}

.form-section {
 
  display: none;
}

.form-section.active {
  left: 0;
  opacity: 1;
  display: block;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* Button */
.continue-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: #ff3f6c;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

/* OTP */
.otp-box {
  margin-top: 15px;
  display: none;
}

/* Social */
.social-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 480px) {
  .login-card {
    margin: 10px;
    padding: 20px;
  }
}

/* Phone Input */
.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
}

.country-code {
  padding: 12px;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  font-weight: 500;
}

.phone-input input {
  flex: 1;
  border: none;
  padding: 12px;
  outline: none;
}

/* Messages */
.error {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Fix spacing */
.success-msg {
  color: #2e7d32;
  margin-top: 10px;
  font-size: 14px;
  display: none;
}

.success-msg .edit {
  margin-left: 8px;
  cursor: pointer;
  font-size: 13px;
}

.edit {
  color: #2f8f6f;
}

/* OTP always below */
.otp-box {
  margin-top: 15px;
  display: none;
}

/* Timer + resend */
.otp-actions {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
}

.resend-link {
  color: #2f8f6f;
  cursor: pointer;
}

/* Edit icon */
.edit-icon {
  padding: 0 10px;
  cursor: pointer;
}

/* Disabled input */
.phone-input input:disabled {
  background: #f3f3f3;
}

/* OTP Loader */
.otp-loader {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* Show */
.otp-loader.active {
  display: flex;
}

/* Box */
.otp-loader-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  width: 260px;
}

/* Spinner */
.spinner {
  width: 45px;
  height: 45px;

  border: 4px solid #eee;
  border-top: 4px solid #2f8f6f;

  border-radius: 50%;

  margin: 0 auto 15px;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}