* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Animated Background */
.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #1DB954;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #1ed760;
  bottom: -50px;
  right: -50px;
  animation-delay: 2s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #169c46;
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
}

/* Logo Header */
.logo-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.logo svg {
  width: 40px;
  height: 40px;
  color: #1DB954;
}

.logo span {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Card */
.card {
  background: #121212;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.header p {
  color: #b3b3b3;
  font-size: 0.875rem;
}

/* Success Message */
.success-message {
  display: none;
  align-items: center;
  padding: 1rem;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid #1DB954;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.success-message.show {
  display: flex;
}

.success-icon {
  color: #1DB954;
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.success-message span:last-child {
  color: #1DB954;
  font-weight: 500;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 1px solid #727272;
  border-radius: 500px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-btn:hover {
  border-color: #fff;
  transform: scale(1.02);
}

.social-btn svg {
  flex-shrink: 0;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #292929;
}

.divider span {
  position: relative;
  background: #121212;
  padding: 0 1rem;
  color: #b3b3b3;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input Groups */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group.hidden {
  display: none;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #121212;
  border: 1px solid #727272;
  border-radius: 4px;
  padding: 0.875rem 1rem;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.input-wrapper.error {
  border-color: #f15e6c;
  box-shadow: 0 0 0 1px #f15e6c;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #fff;
  font-family: inherit;
}

.input-wrapper input::placeholder {
  color: #727272;
}

.input-hint {
  font-size: 0.75rem;
  color: #b3b3b3;
}

.toggle-password {
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  padding: 0;
  display: flex;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #fff;
}

.error-message {
  color: #f15e6c;
  font-size: 0.875rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.form-options.hidden {
  display: none;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #b3b3b3;
  font-size: 0.875rem;
  cursor: pointer;
  position: relative;
  padding-left: 28px;
}

.checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  background: transparent;
  border: 1px solid #727272;
  border-radius: 3px;
  transition: all 0.2s;
}

.checkbox-wrapper:hover .checkmark {
  border-color: #1DB954;
}

.checkbox-wrapper input:checked ~ .checkmark {
  background: #1DB954;
  border-color: #1DB954;
}

.checkbox-wrapper input:checked ~ .checkmark::after {
  content: '✓';
  position: absolute;
  color: #000;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
}

.forgot-link {
  color: #fff;
  font-size: 0.875rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #1DB954;
}

/* Terms */
.terms {
  margin: 0.5rem 0;
}

.terms.hidden {
  display: none;
}

.terms a {
  color: #1DB954;
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #1DB954;
  color: #000;
  border: none;
  border-radius: 500px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: #1ed760;
  transform: scale(1.02);
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Toggle Section */
.toggle-section {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #292929;
  color: #b3b3b3;
}

.toggle-section button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.toggle-section button:hover {
  color: #1DB954;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 2rem;
  padding: 0 1rem;
}

.footer p {
  font-size: 0.75rem;
  color: #b3b3b3;
  line-height: 1.5;
}

.footer a {
  color: #b3b3b3;
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-btn {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 1.25rem 1rem;
  }

  .logo span {
    font-size: 1.5rem;
  }

  .header h1 {
    font-size: 1.25rem;
  }
}