html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #0e0e0e;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.auth-content {
  flex: 1 0 auto;
  padding-top: 60px;
  padding-bottom: 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.auth-content::-webkit-scrollbar {
  display: none;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #121212;
  z-index: 1000;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
  box-sizing: border-box;
}

.app-header .logo {
  font-weight: bold;
  font-size: 1.6rem;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #7f5af0, #ff6f61);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  padding: 0 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, #7f5af0, #ff6f61);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #1c1c1c;
  border: 2px solid transparent;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: transparent;
  background: linear-gradient(45deg, #7f5af0, #ff6f61) padding-box, linear-gradient(45deg, #7f5af0, #ff6f61) border-box;
  box-shadow: 0 0 10px rgba(127, 90, 240, 0.4);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.upload-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #18181b;
  border: 1.5px solid #3a2e5c;
  box-shadow: 0 2px 12px rgba(127, 90, 240, 0.08);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-container:hover {
  border-color: #7f5af0;
  background: #222;
}

.upload-container svg {
  width: 40px;
  height: 40px;
  fill: #7f5af0;
  margin-bottom: 0.5rem;
}

.upload-container p {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin: 0;
}

.upload-container input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
  z-index: 3;
}

.upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bdbdbd;
  background: rgba(24, 24, 27, 0.7);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s;
}

.upload-overlay svg {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  fill: #7f5af0;
}

.upload-overlay p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

#profilePicPreview {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 1;
}

.upload-container.has-image .upload-overlay {
  opacity: 0;
  pointer-events: none;
}

.auth-button {
  background: linear-gradient(45deg, #7f5af0, #ff6f61);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 90, 240, 0.4);
}

.login-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 10px 16px;
  z-index: 1000;
  box-sizing: border-box;
}

.switch-link {
  color: #ff6f61;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.switch-link:hover {
  color: #7f5af0;
}

.wizard-step {
  display: none;
  animation: slideIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
  box-sizing: border-box;
}

.wizard-nav button,
.login-nav button {
  background: #2e2e2e;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  flex: 1;
  margin: 0 5px;
}

.wizard-nav button:hover,
.login-nav button:hover {
  background: #7f5af0;
  transform: translateY(-2px);
}

.wizard-nav button:first-child,
.login-nav button:first-child {
  margin-left: 0;
}

.wizard-nav button:last-child,
.login-nav button:last-child {
  margin-right: 0;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.progress-dot {
  width: 10px;
  height: 10px;
  background: #333;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.progress-dot.active {
  background: #7f5af0;
}

.success-screen {
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease-in;
}

.success-screen svg {
  width: 80px;
  height: 80px;
  fill: #7f5af0;
  margin-bottom: 1.5rem;
}

.success-screen p {
  color: #b0b0b0;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.confetti div {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #7f5af0;
  opacity: 0.8;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 0.8;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0e0e0e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #7f5af0;
  border-top: 5px solid #ff6f61;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}