:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #eef2f5;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8eef3, #f8fafb);
}

button, input { font: inherit; }

.shell { width: min(92vw, 720px); }

.card {
  background: #fff;
  border: 1px solid #d8e0e6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgb(36 53 66 / 12%);
  padding: clamp(24px, 5vw, 44px);
}

.login-card { width: min(100%, 430px); margin: 0 auto; }

h1 { margin: 0; font-size: 2rem; text-align: center; }
.subtitle { margin: 8px 0 28px; text-align: center; color: #5c6a75; font-size: 1.05rem; }

form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 650; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aebbc5;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 1.1rem;
}
input:focus { outline: 3px solid #b9d8ee; border-color: #256d9b; }

button {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  background: #176a95;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: #e8edf1; color: #24323c; }
.message { min-height: 1.4em; margin: 0; color: #a12c24; }

.home-card header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-card header h1, .home-card header .subtitle { text-align: left; }
.home-card header .subtitle { margin-bottom: 0; }
nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.app-link {
  display: grid;
  gap: 7px;
  min-height: 132px;
  align-content: center;
  border: 1px solid #cbd7df;
  border-radius: 13px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: #f7fafc;
}
.app-link:hover, .app-link:focus { border-color: #176a95; box-shadow: 0 0 0 3px #c8e3f2; outline: none; }
.app-link strong { font-size: 1.25rem; }
.app-link span { color: #5c6a75; }

@media (max-width: 620px) {
  nav { grid-template-columns: 1fr; }
  .home-card header { align-items: flex-start; }
}
