html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Apple Pages-inspired modern style */
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
  color: #222;
  margin: 0;
  padding: 0;
}

.container {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

header .navbar {
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04);
  background: rgba(255,255,255,0.85) !important;
  font-weight: 500;
}

.navbar-brand {
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #0071e3 !important;
}

.nav-link {
  font-size: 1.1rem;
  color: #222 !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #0071e3 !important;
}

.btn, button, input[type="submit"] {
  border-radius: 12px;
  background: linear-gradient(90deg, #0071e3 0%, #2997ff 100%);
  color: #fff;
  border: none;
  padding: 0.6em 1.4em;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(0,113,227,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover, button:hover, input[type="submit"]:hover {
  background: linear-gradient(90deg, #2997ff 0%, #0071e3 100%);
  box-shadow: 0 4px 16px 0 rgba(0,113,227,0.12);
}

input, textarea, select {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 0.7em 1em;
  font-size: 1rem;
  background: #f8fafc;
  transition: border 0.2s;
}

input:focus, textarea:focus, select:focus {
  border: 1.5px solid #0071e3;
  outline: none;
}

footer {
  background: transparent;
  color: #888;
  font-size: 1rem;
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem 0 0 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}