*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: sans-serif;
  background: #F8F8FF;
}

/* ---------- Layouts ---------- */

.page-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ---------- Card ---------- */

.card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
}

.card--wide {
  max-width: 500px;
}

/* ---------- Typography ---------- */

h2 {
  text-align: center;
  color: #0033A0;
  margin-bottom: 20px;
}

/* ---------- Form elements ---------- */

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #0033A0;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 51, 160, 0.3);
}

.btn:hover { background: #002080; }

.btn--danger { background: #D33; }
.btn--danger:hover { background: #B00; }

.btn--small {
  width: auto;
  padding: 10px 16px;
}

/* ---------- Messages ---------- */

.error {
  color: red;
  text-align: center;
  margin-top: 10px;
}

.success {
  color: green;
  text-align: center;
  margin-top: 10px;
}

/* ---------- Links ---------- */

.link-switch {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.link-switch a {
  color: purple;
  font-weight: bold;
  text-decoration: none;
}

/* ---------- Logout corner ---------- */

.logout-corner {
  position: absolute;
  top: 20px;
  right: 20px;
}
