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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

/* Loading Screen */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid #bafa71;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Pages */
.page {
  display: block;
}

.page.hidden {
  display: none;
}

.container {
  width: 100%;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  height: 40px;
  width: auto;
}

/* Content */
.content {
  text-align: center;
}

.content h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.subtitle {
  color: #939393;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 50px;
  line-height: 1.5;
}

/* Form */
.form {
  text-align: left;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  background-color: transparent;
  border: 1px solid #252a34;
  border-radius: 20px;
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  border-color: #bafa71;
}

.input-group input::placeholder {
  color: #939393;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: #939393;
}

/* Password Requirements */
.password-requirements {
  margin: 20px 0 40px 0;
  padding: 20px;
  background-color: rgba(37, 42, 52, 0.3);
  border-radius: 12px;
}

.password-requirements h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ffffff;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #939393;
}

.requirement.valid {
  color: #bafa71;
}

.check {
  font-size: 16px;
  color: #939393;
  transition: color 0.3s ease;
}

.requirement.valid .check {
  color: #bafa71;
}

/* Password Match */
.password-match {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  font-size: 12px;
  color: #ff4444;
}

.password-match.valid {
  color: #bafa71;
}

.match-icon {
  font-size: 16px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: #bafa71;
  color: #000000;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:disabled {
  background-color: #333;
  color: #666;
  cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
  background-color: #a8e85f;
  transform: translateY(-1px);
}

.spinner-btn {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

/* Verification/Success/Error Content */
.verification-content,
.success-content,
.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
}

.verification-icon,
.success-icon,
.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.verification-icon,
.success-icon {
  background-color: #bafa71;
}

.error-icon {
  background-color: #ff4444;
}

.verification-icon svg,
.success-icon svg,
.error-icon svg {
  width: 40px;
  height: 40px;
  fill: #000000;
}

.error-icon svg {
  fill: #ffffff;
}

.verification-content p,
.success-content p,
.error-content p {
  color: #939393;
  font-size: 16px;
  line-height: 1.5;
  max-width: 300px;
}

/* Responsive Design */
@media (max-width: 480px) {
  #app {
    padding: 16px;
  }

  .content h1 {
    font-size: 20px;
  }

  .subtitle {
    font-size: 13px;
  }

  .input-group input {
    padding: 14px 16px;
    font-size: 15px;
  }

  .submit-btn {
    padding: 14px;
    font-size: 15px;
  }
}
