/* Shared auth styles and font import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Color variables: wet-asphalt palette */
:root {
  --wet-asphalt: #1f2629; /* dark wet asphalt */
  --wet-asphalt-2: #242a2d; /* slightly lighter */
  --text-color: #e6eef2; /* light text for contrast */
  --accent: #3aa0ff;
}

/* Apply a consistent font across pages */
html, body, input, button, textarea, select, p, h1, h2, h3, h4, h5, h6, a {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: var(--text-color);
}

/* Force a single-color wet-asphalt background site-wide (overrides inline backgrounds) */
body {
  background: var(--wet-asphalt) !important;
  background-color: var(--wet-asphalt) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Provide a safe fallback for html element too */
html { background: var(--wet-asphalt) !important; }

/* Ensure form controls inherit font settings */
input, button, textarea, select {
  font-family: inherit;
}

/* Button accent override to match new palette */
button {
  --btn-accent-start: var(--accent);
}

/* Auth form controls: rectangular style and palette */
/* Use high specificity and !important to override inline/template styles */
input[type="text"], input[type="password"], textarea, select, .box input, .box textarea {
  background: var(--wet-asphalt-2) !important;
  color: var(--text-color) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 28px !important; /* rounded (pill-like) */
  box-shadow: none !important;
  width: 346px !important;
  height: 54px !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  outline: none !important;
  transition: box-shadow 0.18s ease, transform 0.06s ease;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
  transform: translateY(-1px);
  border-color: rgba(58,160,255,0.9) !important;
}

/* Make buttons match the accent and rectangular shape */
button, .box button {
  background: linear-gradient(90deg, var(--accent) 0%, #0a88e6 100%) !important;
  color: var(--text-color) !important;
  border: none !important;
  border-radius: 28px !important; /* rounded buttons */
  width: 356px !important;
  height: 54px !important;
  font-size: 18px !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
  transition: transform 0.08s ease, filter 0.12s ease;
}

button:active, .box button:active {
  transform: translateY(1px) scale(0.998);
}

button:hover, .box button:hover {
  filter: brightness(1.05) !important;
}

/* Small screens: make inputs responsive */
@media (max-width: 420px) {
  input[type="text"], input[type="password"], .box input {
    width: calc(100% - 40px) !important;
  }
  button, .box button {
    width: calc(100% - 40px) !important;
  }
}

