*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #e8edf4;
  background: linear-gradient(145deg, #0f1c2e 0%, #1a2f4a 50%, #0d1828 100%);
}

.card {
  width: 100%;
  max-width: 32rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb8f7;
}

.logo + .logo {
  margin-top: 0.25rem;
}

.card-header {
  margin-bottom: 2rem;
}

h1 {
  margin-top: 1.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #ffffff;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #b8c5d6;
}

.flash {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  text-align: left;
  border-radius: 0.5rem;
}

.flash-error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.flash-success {
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b8c5d6;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #e8edf4;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder {
  color: #6b7d94;
}

.form-group input:focus {
  border-color: #7eb8f7;
  box-shadow: 0 0 0 3px rgba(126, 184, 247, 0.2);
}

.btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  color: #0f1c2e;
  background: linear-gradient(180deg, #f0b429 0%, #d99a1a 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0.25rem 0.75rem rgba(240, 180, 41, 0.35);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(240, 180, 41, 0.45);
  outline: none;
}

.btn:active {
  transform: translateY(0);
}
