:root {
  /* Professional Dark Theme */
  --bg-body: #0f1117;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-input: rgba(255, 255, 255, 0.03);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-focus: #6366f1;

  --primary: #6366f1;
  --primary-hover: #4f46e5;

  --text-heading: #ffffff;
  --text-body: #9ca3af;
  --text-muted: #6b7280;

  --error-bg: rgba(220, 38, 38, 0.1);
  --error-text: #fca5a5;
  --success-bg: rgba(5, 150, 105, 0.1);
  --success-text: #6ee7b7;

  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-body);
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

*,h1,h2,h3,h4,h5,h6{
    font-family: "Poppins", sans-serif !important;
}

.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #000;
}

.brand-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.auth-title {
  text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: rgba(220, 38, 38, 0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(5, 150, 105, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-heading);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  color: #818cf8;
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Google Button Specifics */
.btn-google {
  background: white;
  color: #1f2937;
  margin-bottom: 24px;
  border: 1px solid transparent;
}

.btn-google:hover {
  background: #f3f4f6;
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.divider span {
  padding: 0 12px;
}

.auth-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-body);
  margin-top: 24px;
  line-height: 1.5;
}

.auth-link a {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Grid for register page */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #13141a inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}
