/* assets/Style/auth.css */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
}

#auth-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.role-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.role-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.role-btn.active {
  background-color: #bf0a0a;
  color: white;
  border-color: #ffffff;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 94%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #bf0a0a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #940808;
}
.action-buttons {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.resend-btn {
  padding: 0;
  border: none;
  color: #bf0a0a;
  background: none;
  cursor: pointer;
  font-size: 14px;
}

.resend-btn:hover {
  color: #940808;
  cursor: pointer;
}

.resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.change-email {
  padding: 0;
  border: none;
  color: #bf0a0a;
  background-color: white;
}

.change-email:hover {
  color: #940808;
  cursor: pointer;
}

.auth-switch {
  text-align: center;
  margin-top: 10px;
}

.auth-switch a {
  color: #bf0a0a;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Button loading animation */
.loading-btn {
  position: relative;
  pointer-events: none;
  background-color: #bf0a0a;
  color: #bf0a0a;
  content: ".";
}
.loading-btn::before {
  content: ".";
  color: #bf0a0a;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  background-color: none;
  border: 3px solid white;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none;
}
.role-fields {
  margin-top: 15px;
}
#otp-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* For mobile phones */
@media screen and (max-width: 768px) {
  .auth-box {
    width: 90%;
    max-width: 90%;
  }
}

.form-group input {
  width: 88%;
}
