* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  min-height: 100vh;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

.auth-card h2 {
  margin-top: 0;
  text-align: center;
  color: #111827;
}

input {
  width: 100%;
  padding: 13px;
  margin: 9px 0;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

button {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
}

.links span {
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
}

.links span:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

#msg {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0;
}

.success {
  color: #16a34a;
}

.error {
  color: #dc2626;
}

.form-help {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

.form-help strong {
  color: #111827;
  overflow-wrap: anywhere;
}

.otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
}

@media (max-width: 480px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 30%),
      linear-gradient(160deg, #0f172a, #2563eb 48%, #16a34a);
  }

  .auth-container {
    align-items: flex-end;
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  }

  .auth-card {
    padding: 26px 20px 22px;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.32);
  }

  .auth-card::before {
    content: "Canteen";
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .auth-card h2 {
    font-size: 28px;
    margin-bottom: 18px;
  }

  input,
  button {
    min-height: 48px;
    border-radius: 16px;
  }

  .links {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}
