* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(160deg, #f6f3ee 0%, #ece6dc 100%);
  color: #2b2620;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(43, 38, 32, 0.12);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
}

.logo {
  display: block;
  width: 7.5rem;
  height: auto;
  margin: 0 auto 0.75rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.sub {
  margin: 0 0 1.5rem;
  color: #6b6258;
  font-size: 1rem;
}

.msg {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}

.msg[hidden] { display: none; }

.msg-warn { background: #fff6e0; color: #7a5300; border: 1px solid #f1d58a; }

.msg-err { background: #fdecea; color: #8a1c13; border: 1px solid #f3b9b2; }

.btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: #2b2620;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:hover, .btn:focus-visible { background: #4a4136; }

.btn:active { transform: translateY(1px); }

.btn:focus-visible { outline: 3px solid #c9a56a; outline-offset: 3px; }

@media (max-width: 420px) {
  .card { padding: 1.75rem 1.25rem 1.5rem; border-radius: 1rem; }
  h1 { font-size: 1.3rem; }
  .btn { font-size: 1.05rem; }
}
