@font-face {
  font-family: "Paperlogy";
  src: url("assets/fonts/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("assets/fonts/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("assets/fonts/Paperlogy-8ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #211b18;
  background:
    radial-gradient(circle at 10% 5%, rgba(239, 51, 52, .13), transparent 28rem),
    radial-gradient(circle at 90% 100%, rgba(239, 51, 52, .08), transparent 30rem),
    #f6f2ef;
  font-family: "Paperlogy", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

.login-shell {
  display: grid;
  align-content: center;
  width: min(460px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  color: inherit;
  text-decoration: none;
}

.brand span {
  color: #ef3334;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.8px;
}

.brand strong { color: #59514d; font-size: 14px; }
.brand i { display: inline-block; width: 1px; height: 12px; margin: 0 5px -1px; background: #aaa19c; }

.login-card {
  padding: 38px 34px 32px;
  border: 1px solid rgba(45, 33, 27, .08);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(55, 33, 24, .12);
  text-align: center;
}

.shield {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f04a43, #d51c2b);
  box-shadow: 0 13px 30px rgba(211, 29, 42, .22);
}

.shield svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { margin: 0 0 8px; color: #ef3334; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0 0 14px; font-size: 34px; letter-spacing: -.055em; }
.description { margin: 0 0 24px; color: #706762; font-size: 15px; line-height: 1.7; }
.login-form { display: grid; gap: 8px; text-align: left; }
.login-form label { margin-top: 4px; color: #514944; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #ddd3cc; border-radius: 12px; color: #211b18; background: #fff; font: inherit; outline: none; }
.login-form input:focus { border-color: #ef3334; box-shadow: 0 0 0 3px rgba(239, 51, 52, .1); }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-field button { position: absolute; top: 50%; right: 8px; height: 34px; padding: 0 9px; border: 0; border-radius: 8px; color: #756b66; background: #f6f2ef; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; transform: translateY(-50%); }
.login-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 12px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(115deg, #ef3b3b, #d91526); box-shadow: 0 12px 28px rgba(172, 20, 31, .22); cursor: pointer; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; }
.login-button:hover { filter: brightness(.97); }
.login-button:focus-visible { outline: 3px solid rgba(239, 51, 52, .3); outline-offset: 3px; }
.login-button:disabled { cursor: wait; opacity: .7; }
.login-status { display: none; margin: 2px 0 0; color: #b21f2b; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }
.login-status.is-visible { display: block; }
.separator { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; color: #a19893; font-size: 11px; }
.separator::before, .separator::after { height: 1px; flex: 1; background: #eee6e1; content: ""; }
.chatgpt-login { display: flex; align-items: center; justify-content: center; min-height: 45px; border: 1px solid #dfd5ce; border-radius: 12px; color: #554c47; background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.security-note { margin: 15px 0 0; color: #958a84; font-size: 11px; line-height: 1.5; }
.back-link { justify-self: center; margin-top: 20px; color: #746a65; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 430px) {
  .login-card { padding: 32px 22px 28px; border-radius: 22px; }
  .brand strong { font-size: 12px; }
  h1 { font-size: 31px; }
}
