:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #d7dee8;
  --line-soft: #e8edf3;
  --text: #1f2d3d;
  --muted: #6c7a89;
  --brand: #1144bb;
  --brand-soft: #0d6efd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 0.5rem 1rem rgba(31, 45, 61, 0.08);
}

.login-card__header {
  margin-bottom: 24px;
  text-align: center;
}

.logo {
  width: min(100%, 240px);
  height: auto;
  margin-bottom: 18px;
}

.login-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 300;
}

.login-card__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
}

.login-form {
  display: grid;
  gap: 14px;
}

.form-label {
  margin-bottom: -4px;
  font-size: 0.92rem;
  font-weight: 400;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 300;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-control:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.text-link {
  color: var(--brand-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.text-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: var(--brand-soft);
  border-color: var(--brand-soft);
}

@media (max-width: 640px) {
  .login-card {
    padding: 24px 20px;
  }
}
