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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111827;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.auth-box {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease-out;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 14px;
  color: #9ca3af;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.form-group input {
  padding: 12px 16px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.form-group input::placeholder {
  color: #6b7280;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #9ca3af;
}

.checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #fbbf24;
}

.forgot-password {
  color: #fbbf24;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #f59e0b;
}

.auth-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #111827;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #9ca3af;
}

.auth-footer a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #f59e0b;
}

.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  opacity: 0;
}

.success-overlay.show .success-card {
  transform: scale(1);
  opacity: 1;
}

.success-icon {
  color: #22c55e;
  margin-bottom: 16px;
  animation: pop 0.6s ease;
}

.success-card h3 {
  color: #0f172a;
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.success-card p {
  color: #475569;
  font-size: 0.95rem;
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}
 /* Basic styling for error card */
  .error-card {
    background-color: #ffe5e5;
    color: #ff0000;
    border: 1px solid #ff0000;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
  }
  .error-card button {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #ff0000;
  }

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-container {
    max-width: 100%;
    padding: 15px;
  }

  .auth-box {
    padding: 30px 20px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .auth-box {
    padding: 25px 15px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-header p {
    font-size: 12px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .auth-footer {
    font-size: 12px;
  }
}
