/* Register Page Specific Styles */

.password-strength {
  margin-top: 8px;
  display: none;
}

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

.strength-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak {
  width: 33%;
  background: #e74c3c;
}

.strength-fill.medium {
  width: 66%;
  background: #f39c12;
}

.strength-fill.strong {
  width: 100%;
  background: #27ae60;
}

.strength-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.strength-text.weak {
  color: #e74c3c;
}

.strength-text.medium {
  color: #f39c12;
}

.strength-text.strong {
  color: #27ae60;
}

.error-message {
  display: block;
  font-size: 11px;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 16px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-group.error .input-wrapper input {
  border-color: #e74c3c;
}

.form-group.error .input-glow {
  opacity: 0.3;
  background: #e74c3c;
}

.form-group.success .input-wrapper input {
  border-color: #27ae60;
}

.form-group.success .input-glow {
  opacity: 0.3;
  background: #27ae60;
}

.optional {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0;
}

.terms-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.terms-link:active {
  opacity: 0.7;
  text-decoration: underline;
}

/* OTP Wrapper with Button */
.otp-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.otp-wrapper input {
  flex: 1;
}

.send-otp-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.send-otp-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-otp-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

.send-otp-btn .btn-loader {
  display: none;
}

.send-otp-btn .btn-loader i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Tablet and Desktop */
@media (min-width: 769px) {
  .terms-link:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
}
