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

:root {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #313131 url('/assets/img/background.jpg') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth Layout ── */

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: normal;
  min-height: 100vh;
  width: 100%;
  padding: 40px 20px;
}

.auth-logo-icon {
  width: 30vw;
  max-width: 300px;
  min-width: 90px;
  display: block;
  mix-blend-mode: multiply;
}

.auth-logo-text {
  width: 30vw;
  max-width: 300px;
  min-width: 90px;
  display: block;
  margin-top: 6px;
  mix-blend-mode: multiply;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  padding: 36px 32px;

}

.auth-card label {
  display: block;
  margin: 0 0 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b91c1c;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  Border: 0px;
  background: rgba(255, 255, 255, 0.5);
  color: #636363;;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-card input:focus {
  border-color: #b91c1c;
}

.auth-card input::placeholder {
  color: #b0b8cc;
}

.auth-submit {
  display: block;
  width: 100%;
  padding: 13px;
  margin-top: 6px;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: #262b47;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: filter 0.15s, transform 0.12s;
}

.auth-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #ffffff;
}

.auth-footer a {
  color: #b91c1c;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Flash Messages ── */

.error {
  color: #b91c1c;
  font-size: 13px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(185, 28, 28, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.18);
}

.success {
  color: #166534;
  font-size: 13px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(22, 101, 52, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(22, 101, 52, 0.18);
}

.muted {
  color: #7a8499;
  font-size: 13px;
}

/* Turnstile spacing */
.cf-turnstile {
  margin: 4px 0 16px;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }
  .auth-logo-icon,
  .auth-logo-text {
    width: 52vw;
  }
}
