/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;

  display: flex;
  flex-direction: column;
}

/* Header styles */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

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

.sponsor-logo {
  height: 70px;
  width: auto;
}

.sponsor-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.powered-by {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

/* Form styles */
.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 0.9rem;
}

input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input::placeholder {
  color: #94a3b8;
}

input[readonly] {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  cursor: not-allowed;
}

/* Checkbox styles */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.terms-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-left: 0.25rem;
}

.terms-link:hover {
  color: #e2e8f0;
}

.terms-link:visited {
  color: #ffffff;
}

/* Button styles */
.btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading states */
.btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: inline;
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Error styles */
.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.error p {
  color: #fca5a5;
  margin-bottom: 1rem;
}

.error-message {
  color: #fca5a5;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success page styles */
.success-icon {
  color: #10b981;
  margin-bottom: 1rem;
}

.success-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.user-info h2 {
  color: #10b981;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.next-steps {
  margin: 1.5rem 0;
}

.next-steps h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #cbd5e1;
}

.next-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Form footer */
.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

.register-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.register-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Password info styling */
.password-info {
  margin: 0.5rem 0 1.5rem 0;
  text-align: center;
}

.password-info p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
}

/* Terms page styles */
.terms-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 2rem;
}

.terms-content h2 {
  color: #3b82f6;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

.terms-content h3 {
  color: #60a5fa;
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.1rem;
}

.terms-content p {
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.terms-content ul {
  color: #cbd5e1;
  margin: 0.5rem 0 1rem 1.5rem;
}

.terms-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.terms-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.terms-footer p {
  color: #94a3b8;
  margin: 0.5rem 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem 0;
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 20px;
}

.footer p {
  margin: 0.25rem 0;
}

/* Partner logos */
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.partner-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.partner-logo {
  height: 70px !important;
  width: auto;
}
.partner-logo-ride {
  height: 40px;
  width: auto;
  filter: brightness(0.8);
}

.partner-logo:hover {
  filter: brightness(1);
}

/* Responsive design */
@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .form {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

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

  h1 {
    font-size: 1.5rem;
  }

  .logos {
    gap: 15px;
  }

  .logo {
    height: 65px;
  }

  .sponsor-logo {
    height: 55px;
  }

  .powered-by {
    font-size: 0.7rem;
  }

  .partner-logos {
    gap: 1.5rem;
  }

  .partner-label {
    font-size: 0.65rem;
  }

  .partner-logo {
    height: 35px;
  }
}

/* Error page styles */
.error-message {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-message h2 {
  color: #ef4444;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.error-message p {
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 360px) {
  .container {
    padding: 10px;
  }

  .form {
    padding: 1rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn {
    width: 100%;
    max-width: 200px;
  }
}
