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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 20, 147, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 10%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(255, 105, 180, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: glowShift 8s ease-in-out infinite;
}

@keyframes glowShift {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-section {
  margin-bottom: 8px;
}

.logo-img {
  width: 100%;
  min-width: 200px;
  height: auto;
  margin: 0 auto 12px auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.1)) drop-shadow(0 0 30px rgba(30, 144, 255, 0.2));
}

.form-card {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: #999;
}

.tab.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

.form-content {
  display: none;
}

.form-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
}

input::placeholder {
  color: #555;
}

input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  background: rgba(10, 10, 10, 0.8);
}

.error-message {
  background: rgba(42, 26, 26, 0.7);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

.error-message.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-btn {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FDD34B 0%, #FDD34B 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #e0c158 0%, #d4af37 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 10, 10, 0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

@media (max-width: 600px) {
  .form-card {
    padding: 32px 24px;
  }
}
