/* My Mountain Tutor sign-in: a painted dawn over the Canadian Rockies (shared/scenery/trail-dawn-*). A light scene by design, in any system theme. */
:root {
  --ink: #23395b; --muted: #5a6f8f; --accent: #4a8bcf; --accent-2: #6eaee6; --line: #c9daee;
  --panel: rgba(255, 255, 255, .78); --field: #f5f9fe; --bad: #b3261e; --good: #2f6b4f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--ink); background: #e9dff0;
  font: 16px/1.5 Nunito, system-ui, sans-serif;
}
.scene {
  position: fixed; inset: 0; z-index: 0;
  background: #e9dff0 url(shared/scenery/trail-dawn-1400-v1.jpg) center bottom / cover no-repeat;
  background-image: image-set(url(shared/scenery/trail-dawn-1400-v1.jpg) 1x, url(shared/scenery/trail-dawn-2560-v1.jpg) 2x);
}
@media (min-width: 1100px) { .scene { background-image: url(shared/scenery/trail-dawn-2560-v1.jpg); } }
/* A soft white fade at the top keeps the headline crisp; the card blurs only what is behind it. */
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .12) 30%, rgba(255, 255, 255, 0) 55%); }
main {
  position: relative; z-index: 1; max-width: 27rem; margin: 0 auto;
  padding: clamp(2rem, 9vh, 5.5rem) 16px 3rem;
}
.brand { text-align: center; margin-bottom: 1.25rem; }
.logo { width: 64px; height: 48px; filter: drop-shadow(0 4px 10px rgba(74, 139, 207, .25)); }
h1 {
  font-family: Fredoka, Nunito, sans-serif; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.1; margin: .35rem 0; color: #28507f;
  text-shadow: 0 2px 12px rgba(255, 255, 255, .8);
}
.tagline { margin: 0; color: #3f5a80; font-weight: 700; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(255, 255, 255, .8); }
.foot {
  position: relative; z-index: 1; margin: -1.6rem auto 1.5rem; padding: .45rem .9rem; width: fit-content; max-width: 100%; text-align: center;
  font-size: .8rem; font-weight: 700; color: #3f5a80; background: rgba(255, 255, 255, .62); border-radius: 99px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (max-width: 520px) { .foot { margin: -1.6rem 16px 1.5rem; border-radius: 14px; } }
h2 { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: 1.25rem; margin: 0 0 .5rem; }
.panel {
  background: var(--panel); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px;
  padding: 1.4rem 1.4rem 1.1rem; box-shadow: 0 18px 50px -18px rgba(43, 74, 120, .45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  animation: rise .5s ease-out both;
}
label { display: block; margin: .7rem 0; font-weight: 800; font-size: .95rem; }
input {
  display: block; width: 100%; margin-top: .3rem; padding: .75rem .85rem; font: inherit; font-weight: 600;
  color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(107, 154, 216, .25); }
button {
  min-height: 46px; padding: .75rem 1.2rem; font: inherit; font-weight: 800; cursor: pointer;
  border: 0; border-radius: 12px; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 16px -6px rgba(74, 139, 207, .7); transition: transform .1s, box-shadow .15s;
}
form button[type="submit"] { width: 100%; margin-top: .4rem; }
button:hover { box-shadow: 0 8px 20px -6px rgba(74, 139, 207, .8); }
button:active { transform: translateY(1px); }
button:focus-visible, .link:focus-visible { outline: 3px solid rgba(107, 154, 216, .5); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: default; }
.link {
  display: block; margin: .4rem auto 0; min-height: 40px; padding: .4rem .6rem; background: none; box-shadow: none;
  color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { box-shadow: none; color: #28507f; }
.hint { color: var(--muted); font-size: .9rem; margin: .5rem 0; text-align: center; }
#forgot .hint, #setpw .hint { text-align: left; }
.msg { color: var(--bad); min-height: 1.5rem; margin: .5rem 0 0; font-weight: 700; font-size: .95rem; }
.msg.ok { color: var(--good); }
.tag { font-size: .8rem; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
ul { padding-left: 1.2rem; }
[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
