:root {
  --navy: #1f365d;
  --blue: #4e89b7;
  --blue-text: #4f82b5;
  --purple: #a24d92;
  --page-bg: #666766;
  --error: #8a1f1f;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
}

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

.login-card {
  position: relative;
  width: min(720px, 100%);
  min-height: 720px;
  overflow: hidden;
  background: #fff;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.55);
}

.top-art {
  display: block;
  width: 100%;
  height: auto;
}

.content {
  width: min(505px, calc(100% - 48px));
  margin: 4px auto 0;
  text-align: center;
}

.bear-logo {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 auto 14px;
}

h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 4.9vw, 35px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.title-rule {
  position: relative;
  height: 14px;
  margin-top: 6px;
}

.title-rule span {
  position: absolute;
  left: 0;
  top: 5px;
  width: 100%;
  height: 2px;
  background: var(--navy);
}

.title-rule i {
  position: absolute;
  right: 28px;
  top: -9px;
  padding: 0 2px;
  background: #fff;
  color: #7ba6ca;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transform: rotate(5deg);
}

.event-date {
  margin: 0;
  color: var(--blue-text);
  font-size: clamp(17px, 3.2vw, 23px);
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.login-form {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form label {
  margin-bottom: 9px;
  color: var(--blue-text);
  font-size: 19px;
}

.login-form input {
  width: 100%;
  height: 46px;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--blue-text);
  box-shadow: 0 0 0 2px rgba(79, 130, 181, 0.18);
}

.login-form button {
  width: min(298px, 100%);
  height: 45px;
  margin-top: 50px;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.login-form button:hover,
.login-form button:focus-visible {
  background: var(--purple);
}

.login-form button span {
  margin-left: 3px;
  font-size: 19px;
}

.bottom-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 168px;
  height: auto;
}

@media (max-width: 600px) {
  .page-shell { padding: 0; align-items: stretch; }
  .login-card {
    width: 100%;
    min-height: 100vh;
    box-shadow: none;
  }
  .content {
    width: min(505px, calc(100% - 32px));
  }
  .bear-logo { width: 150px; margin-top: 4px; }
  h1 { letter-spacing: 0.055em; }
  .event-date { letter-spacing: 0.22em; }
  .login-form { margin-top: 42px; }
  .login-form label { font-size: 17px; }
  .login-form button { margin-top: 38px; }
  .bottom-art { width: 128px; }
}

@media (max-width: 420px) {
  h1 {
    font-size: 22px;
    letter-spacing: 0.035em;
  }
  .event-date {
    font-size: 15px;
    letter-spacing: 0.16em;
  }
}
