:root {
  --color-text: #333;
  --color-bg: #f9f9f9;
  --color-gray: gray;
  --color-light-gray: #ccc;
  --color-white: #fff;
  --color-red: #E51E52;
  --color-red-hover: #b91c1c;
  --color-tab-active: #007bff;
  --color-banner-overlay: rgba(116, 116, 116, 0.378);
  --color-search-bg: rgba(72, 72, 72, 0.2);
  --color-search-button-bg: rgba(72, 72, 72, 0.1);
  --color-input-border: #d1d5db;
  --color-sponsor-text: #9ca3af;
  --color-sponsor-hover: #e5e7eb;
}

/* === Reset & Base Styles === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font: inherit;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  padding: 0.5rem;
}

button {
  cursor: pointer;
  background-color: var(--color-text);
  color: var(--color-white);
  transition: background 0.3s ease;
}

button:hover {
  background-color: #555;
  background-color: var(--color-red-hover);
  /* --color-red-hover: #b91c1c;; */
}

/* === Utility === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }

.auth-section {
  padding: 1rem 0;
  /* background-color: #1e293b; */
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  height: 100vh;
}

.auth-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.auth-logo-img {
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}

.auth-card {
  /* background-color: #1e293b; */
  margin-top: 90px;
  border: 1px solid #334155;
  border: 1px solid lightgray;
  border-radius: 0.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.06);
}

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

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  /* color: white; */
  color: #333;
  margin-bottom: 1.5rem;
}

.google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
}

.google-btn:hover {
  background-color: #f3f4f6;
}

.google-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.line {
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.or {
  padding: 0 1.25rem;
  color: #9ca3af;
}

.auth-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  /* color: white; */
  color: #333;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"]  {
  width: 100%;
  padding: 0.3rem;
  /* background-color: #374151; */
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  /* color: white; */
  color: #333;
}

.remember-reset {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 1rem 0;
}

.remember-reset a {
  color: #14b8a6;
  text-decoration: none;
}

.submit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-red);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}

.signup-text {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 1rem;
  text-align: center;
}

.signup-text a {
  color: #14b8a6;
  text-decoration: none;
  font-weight: 500;
}


/* Alert notifications */
.alert-box {
  background-color: #bbf7d0;
  padding: 1rem 1.5rem;
  /* margin: 1rem 0.5rem; */
  border-radius: 0.375rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  display: none;
  transition: display ease-in-out 3s;
}

.alert-icon {
  color: #16a34a;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.alert-text {
  color: #065f46;
}

/* Red variant */
.alert-box.error {
  background-color: #fecaca; /* Tailwind's red-200 */
}

.alert-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

/* Red variant */
.error-icon {
  color: #dc2626; /* Tailwind's red-600 */
}

.alert-text {
  display: inline-block;
}

/* Red variant */
.error-text {
  color: #7f1d1d; /* Tailwind's red-800 */
}

/* loading circle */
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db; 
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 2px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
