/* ========================================= */
/* REGISTRATION PAGE STYLES */
/* ========================================= */

.register-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BACKGROUND */

.register-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.register-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(2px);
}

/* CONTENT */

.register-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 60px 48px;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */

.register-header {
  margin-bottom: 48px;
  text-align: center;
}

.register-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.register-logo:hover {
  opacity: 0.9;
}

.register-logo img {
  width: 40px;
  height: 40px;
}

.register-logo h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 2px;
}

/* ========================================= */
/* STEPPER */
/* ========================================= */

.register-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: 0.3s;
}

.stepper-step.stepper-active {
  opacity: 1;
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}

.stepper-step.stepper-active .stepper-circle {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.stepper-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}

.stepper-step.stepper-active .stepper-label {
  color: rgba(255, 255, 255, 0.9);
}

.stepper-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.stepper-line.stepper-line-active {
  background: rgba(255, 255, 255, 0.5);
}

/* ========================================= */
/* FORMS */
/* ========================================= */

.register-forms {
  position: relative;
  min-height: 400px;
}

.register-form {
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease-out;
}

.register-form.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* TITLES */

.form-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 500;
  color: white;
  text-align: center;
}

.form-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

/* METHOD SELECTION */

.method-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.method-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.method-btn.active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}

.method-icon {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

.method-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.method-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* FORM FIELDS */

.register-form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-field input,
.form-field select {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.form-field input::placeholder,
.form-field select > option {
  color: rgba(255, 255, 255, 0.5);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

/* PHONE INPUT GROUP */

.phone-input-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}

.phone-input-group select {
  padding: 14px 12px;
}

/* PASSWORD INPUT */

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.password-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.toggle-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.eye-off-icon {
  display: none;
}

.password-toggle.visible .eye-icon {
  display: none;
}

.password-toggle.visible .eye-off-icon {
  display: block;
}

/* PASSWORD STRENGTH */

.password-strength-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-strength {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s;
}

.password-strength-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 50px;
  text-align: right;
  transition: color 0.3s;
}

.password-strength.weak ~ .password-strength-label {
  color: #ff4b4b;
}

.password-strength.medium ~ .password-strength-label {
  color: #ffa500;
}

.password-strength.strong ~ .password-strength-label {
  color: #4bc04b;
}

.password-strength.weak {
  background: rgba(255, 75, 75, 0.3);
}

.password-strength.weak::after {
  content: "";
  display: block;
  width: 33%;
  height: 100%;
  background: #ff4b4b;
}

.password-strength.medium {
  background: rgba(255, 165, 0, 0.3);
}

.password-strength.medium::after {
  content: "";
  display: block;
  width: 66%;
  height: 100%;
  background: #ffa500;
}

.password-strength.strong {
  background: rgba(75, 192, 75, 0.3);
}

.password-strength.strong::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #4bc04b;
}

/* PASSWORD REQUIREMENTS */

.password-requirements {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  animation: slideDown 0.3s ease-out;
}

.password-requirements.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.requirements-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  transition: color 0.2s;
}

.requirement-item:last-child {
  margin-bottom: 0;
}

.requirement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

.requirement-item.met .requirement-icon {
  color: #4bc04b;
  font-weight: bold;
}

.requirement-item.met {
  color: rgba(75, 192, 75, 0.9);
}

.requirement-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CHECKBOX */

.form-field.checkbox {
  flex-direction: row;
  gap: 12px;
}

.form-field.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-field.checkbox label {
  margin: 0;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.8);
}

/* OTP INPUT */

.otp-input-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 32px 0;
}

.otp-input {
  width: 100%;
  aspect-ratio: 1;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: white !important;
  font-size: 24px !important;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
}

.otp-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

.otp-input::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* OTP TIMER */

.otp-timer {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.otp-timer span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* SUCCESS STATE */

.success-icon {
  width: 80px;
  height: 80px;
  margin: 24px auto 32px;
  border-radius: 50%;
  background: rgba(75, 192, 75, 0.2);
  border: 2px solid rgba(75, 192, 75, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #4bc04b;
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-message {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.success-message p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.success-message p + p {
  margin-top: 12px;
}

/* BUTTONS */

.form-submit {
  padding: 16px 32px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.form-submit:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.form-submit.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 12px;
}

.form-submit.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* RESEND OTP BUTTON */

.resend-otp-btn {
  margin-top: 8px !important;
  display: block !important;
  width: 100% !important;
  padding: 16px 32px !important;
  text-align: center;
  color: white;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.resend-otp-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.resend-otp-btn:active {
  transform: translateY(1px);
}

.resend-otp-btn:disabled,
.resend-otp-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.resend-otp-btn:disabled:hover,
.resend-otp-btn.disabled:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  transform: none;
  box-shadow: none;
}

.form-back {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.form-back:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* LINKS & NOTES */

.form-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
}

.link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 768px) {
  .register-content {
    max-width: 100%;
    padding: 40px 24px;
    border-radius: 24px;
  }

  .register-header {
    margin-bottom: 32px;
  }

  .register-logo h1 {
    font-size: 24px;
  }

  .register-stepper {
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

  .stepper-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .stepper-label {
    font-size: 10px;
  }

  .stepper-line {
    width: 16px;
  }

  .form-title {
    font-size: 24px;
  }

  .method-selection {
    grid-template-columns: 1fr;
  }

  .phone-input-group {
    grid-template-columns: 80px 1fr;
  }

  .otp-input-group {
    gap: 8px;
  }

  .register-forms {
    min-height: auto;
  }

  .form-field input,
  .form-field select {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .register-content {
    padding: 32px 18px;
  }

  .register-stepper {
    display: none;
  }

  .form-title {
    font-size: 20px;
  }

  .form-subtitle {
    font-size: 12px;
  }

  .method-btn {
    padding: 24px 16px;
    gap: 10px;
  }

  .method-title {
    font-size: 13px;
  }

  .method-desc {
    font-size: 11px;
  }

  .otp-input-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .form-submit {
    padding: 14px 24px;
    font-size: 13px;
  }
}
