/* ===========================================================================
   Aerodrome PHP application - shared auth styles (login/register/forgot/reset)
   Dark theme matching the simulation:
     #1a1e24 page background
     #242b33 card background
     #e8c341 accent yellow
     white text
   Font: 'IBM Plex Mono' (loaded from Google Fonts in the HTML head) / mono.
   ========================================================================= */

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

html,
body {
  min-height: 100%;
}

body {
  background: #1a1e24;
  color: #f4f5f7;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle background grid for an aviation / radar feel */
  background-image:
    linear-gradient(rgba(232, 195, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 195, 65, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}

/* ----- Brand header above the card ----- */

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 20px;
  color: #e8c341;
}

.brand .logo svg {
  width: 24px;
  height: 24px;
  fill: #e8c341;
}

.brand .tagline {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #8b94a0;
  text-transform: uppercase;
}

/* ----- Auth card ----- */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #242b33;
  border: 1px solid #303841;
  border-radius: 12px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: card-in 0.4s ease-out both;
}

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

.auth-card h1 {
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: #f4f5f7;
}

.auth-card .subtitle {
  font-size: 12px;
  color: #8b94a0;
  margin-bottom: 24px;
}

/* ----- Form fields ----- */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b94a0;
  margin-bottom: 7px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  background: #1a1e24;
  border: 1px solid #303841;
  border-radius: 7px;
  color: #f4f5f7;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus {
  outline: none;
  border-color: #e8c341;
  box-shadow: 0 0 0 3px rgba(232, 195, 65, 0.18);
}

.field input::placeholder {
  color: #5e6670;
}

/* ----- Checkbox / remember row ----- */

.row-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #aeb6c0;
}

.row-check input {
  accent-color: #e8c341;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.row-check label {
  cursor: pointer;
  user-select: none;
}

/* ----- Buttons ----- */

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.btn-primary {
  background: #e8c341;
  color: #1a1e24;
}

.btn-primary:hover {
  background: #f3d25a;
}

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

.btn-secondary {
  background: transparent;
  color: #aeb6c0;
  border: 1px solid #303841;
}

.btn-secondary:hover {
  border-color: #e8c341;
  color: #e8c341;
}

/* ----- Alert / flash messages ----- */

.alert {
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  animation: card-in 0.3s ease-out both;
}

.alert-error {
  background: rgba(214, 69, 69, 0.12);
  border-color: rgba(214, 69, 69, 0.5);
  color: #f5a3a3;
}

.alert-success {
  background: rgba(15, 138, 79, 0.16);
  border-color: rgba(15, 138, 79, 0.55);
  color: #8eddb4;
}

.alert-info {
  background: rgba(232, 195, 65, 0.10);
  border-color: rgba(232, 195, 65, 0.45);
  color: #e8c341;
}

/* ----- Footer links under the form ----- */

.auth-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #303841;
  text-align: center;
  font-size: 12px;
  color: #8b94a0;
}

.auth-links a {
  color: #e8c341;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-links a:hover {
  color: #f3d25a;
  text-decoration: underline;
}

.auth-links .sep {
  margin: 0 8px;
  color: #3e4750;
}

/* ----- Reset link display ----- */

.reset-link {
  background: #1a1e24;
  border: 1px dashed #303841;
  border-radius: 7px;
  padding: 14px;
  margin: 18px 0 4px;
  word-break: break-all;
  font-size: 12px;
  color: #e8c341;
}

.reset-link code {
  color: #e8c341;
}

/* ----- Back link ----- */

.back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  color: #8b94a0;
  text-decoration: none;
}

.back-link:hover {
  color: #e8c341;
}

/* ----- Responsive tweaks ----- */

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .auth-card {
    padding: 24px 20px 22px;
  }

  .brand {
    margin-bottom: 20px;
  }

  .brand .logo {
    font-size: 18px;
  }
}
