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

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  z-index: -1;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.auth-logo h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  letter-spacing: -0.5px;
  font-family: 'Inter', system-ui, sans-serif;
}

.auth-logo a {
  text-decoration: none;
}

.auth-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link-primary {
  background: #fbbf24 !important;
  color: #000000 !important;
  font-weight: 600;
}

.nav-link-primary:hover {
  background: #facc15 !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
  opacity: 0.5;
}

.auth-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

.form-row input {
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.6);
  color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

.btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #fbbf24 !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
  background: #facc15 !important;
  color: #000000 !important;
}

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

.form-link {
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  font-weight: 500;
  opacity: 0.8;
}

.form-link:hover {
  opacity: 1;
  text-decoration: underline;
  color: #fbbf24;
}

.form-link-container {
  margin-top: 1rem;
  text-align: center;
}

.form-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-row input[readonly] {
  background: rgba(10, 10, 10, 0.4);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}

#status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

#status.error {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.9);
  border: 2px solid rgba(220, 38, 38, 1);
}

#status.ok {
  color: #000000;
  background: rgba(34, 197, 94, 0.9);
  border: 2px solid rgba(34, 197, 94, 1);
}

@media (max-width: 768px) {
  .auth-header {
    padding: 1rem;
  }

  .auth-nav {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-card h2 {
    font-size: 1.75rem;
  }
}
