* {
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Roboto Flex", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #ff7500 transparent;
}

body::-webkit-scrollbar {
  width: 2px;
}

body::-webkit-scrollbar-thumb {
  background-color: #ff7500;
  border-radius: 2px;
}

/* MAIN LAYOUT */
.full-auth-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  height: 100vh;
}

.side-auth-info-background {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #ff7500;
  height: 100%;
}

.side-auth-info-background img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #ff7500 transparent;
}

.auth-container::-webkit-scrollbar {
  width: 2px;
}

.auth-container::-webkit-scrollbar-thumb {
  background-color: #ff7500;
  border-radius: 2px;
}

.auth-container img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

/* FORM STEPS */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  max-width: 500px;
  width: 100%;
  position: relative;
  padding: 10px 20px;
}

.login-step {
  display: block;
  max-width: 500px;
  width: 100%;
  padding: 10px 20px;
}

.form-data {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

/* EMAIL VERIFY FIELD */
.email-verify-field {
  display: flex;
  align-items: center;
  position: relative;
}

.email-verify-field input {
  flex: 1;
}

#verifyEmailBtn {
  color: #ff7500;
  padding: 6px 10px;
  border-radius: 5px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.3s;
}

#verifyEmailBtn:hover {
  text-decoration: underline;
}

/* VERIFY OVERLAY */
.verify-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 14, 14, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.verify-overlay.hidden {
  display: none;
}

.verify-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  text-align: center;
}

.code-inputs {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 5px;
}

.code-digit {
  width: 45px;
  height: 50px;
  font-size: 1.5rem;
  text-align: center;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: 0.2s;
}

.code-digit:focus {
  border-color: #ff7500;
  box-shadow: 0 0 3px #ff7500;
}

#submitCodeBtn {
  background: #000000;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

#submitCodeBtn:hover {
  background: #0000007a;
}

/* BUTTONS */
.auth-container button {
  background: #000000;
  padding: 10px 10px;
  border-radius: 5px;
  border: none;
  color: #ffffff;
  width: 100%;
  margin-top: 10px;
}

.submit-btn {
  background: #000000;
  padding: 10px 10px;
  border-radius: 5px;
  border: none;
  color: #ffffff;
  width: 50% !important;
  margin-top: 10px;
}

.auth-container button:disabled,
.auth-container button[disabled],
.submit-btn:disabled {
  background-color: #999 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* LINKS */
.reset-link {
  margin: 15px;
  font-size: clamp(0.7rem, 0.8vw + 0.8vh, 1.3rem);
  font-weight: 300;
}

.login-link {
  margin-top: 10px;
  font-size: clamp(0.7rem, 0.8vw + 0.8vh, 1.3rem);
}

.login-link a,
.reset-link a {
  text-decoration: none;
  color: #ff7500;
}

.login-link a:hover,
.reset-link a:hover {
  text-decoration: underline;
}

/* HEADINGS */
.auth-container h3 {
  font-size: clamp(1rem, 0.8vw + 0.8vh, 1.5rem);
  color: #1a1a1a;
}

.auth-container h4 {
  font-size: clamp(0.8rem, 0.8vw + 0.8vh, 1.2rem);
  color: #999;
  font-weight: 400;
}

/* STEP 7 */
#step7 p,
#step7 h2 {
  text-align: center;
}

#step7 a {
  color: #ff7500;
  font-size: clamp(0.8rem, 0.7vw + 0.7vh, 1.2rem);
}

/* GROUP FIELDS */
.form-group {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.form-group p {
  background-color: #f6f6f6;
  border-radius: 10px;
  padding: 30px 10px;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.form-group p:hover {
  border-color: #ff7500;
}



/* INPUTS */
.auth-container form label,
.form-step label {
  font-size: clamp(0.8rem, 0.6vw + 0.6vh, 1.2rem);
  text-align: left;
  display: block;
  color: #1a1a1a;
}

.auth-container input[type="text"],
.auth-container input[type="password"],
.auth-container input[type="email"] {
  margin-bottom: 10px;
  margin-top: 5px;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: clamp(0.8rem, 0.6vw + 0.6vh, 1.2rem);
  transition: border 0.5s ease, box-shadow 0.5s ease;
}

input[disabled] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.auth-container form input:focus,
.form-step input:focus {
  border: 1px solid #ff7500;
  box-shadow: 0 0 5px rgba(228, 130, 19, 0.925);
  outline: none;
}

.auth-container input::placeholder,
.form-step input::placeholder {
  font-size: clamp(0.6rem, 0.7vw + 0.7vh, 1rem);
  color: #999;
}
/* SELECT FIELDS */
#referral_pattern,
#industry {
  width: 100%;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: clamp(0.8rem, 0.6vw, 1.2rem);
  margin-top: 8px;
  margin-bottom: 12px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

#referral_pattern:focus,
#industry:focus {
  border: 1px solid #ff7500;
  box-shadow: 0 0 5px rgba(228, 130, 19, 0.925);
  outline: none;
}

.back-btn {
  position: absolute; 
  top: -30px; 
  right: 5px;
  background: #000; 
  border: none;
  color: #fff;
  font-weight: normal;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.85rem;
  width: 25% !important;

  transition: background 0.2s ease;
}

.back-btn:hover {
  background: #333;
}


/* PASSWORD STRENGTH */
.password-strength-bar {
  height: 4px;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.password-strength-bar.weak {
  background-color: #f44336;
}

.password-strength-bar.fair {
  background-color: #ff9800;
}

.password-strength-bar.good {
  background-color: #ffc107;
}

.password-strength-bar.strong {
  background-color: #4caf50;
}

.password-strength-text {
  font-size: 12px;
  color: #555;
}

.error-inline-msg {
  color: #f44336;
  font-size: 12px;
  display: block;
  margin-top: 3px;
}

/* MOBILE */
@media screen and (min-width: 300px) and (max-width: 650px) {
  .side-auth-info-background {
    display: none;
  }

  .success-message,
  .error-message,
  .warning-message {
    width: 70%;
    left: 50%;
  }
}
