@charset "UTF-8";

:root {
  --bg: #0e1014;
  --bg-soft: #171a20;
  --card: #ffffff;
  --text: #17191e;
  --muted: #6d737e;
  --line: #dfe3e8;
  --cyan: #05bfe9;
  --magenta: #ec008c;
  --yellow: #ffe100;
  --danger: #c62828;
  --success: #18794e;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.05), transparent 30%),
    linear-gradient(135deg, #090a0d 0%, #171a20 55%, #0b0d11 100%);
  overflow-x: hidden;
}

button, input { font: inherit; }
a { color: inherit; }

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .13;
  pointer-events: none;
}
.ambient-cyan { background: var(--cyan); top: -180px; left: -130px; }
.ambient-magenta { background: var(--magenta); right: -170px; top: 20%; }
.ambient-yellow { background: var(--yellow); left: 35%; bottom: -250px; opacity: .07; }

.login-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 56px 0 28px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 76px;
}

.brand-panel { padding: 18px 0; }
.brand-logo {
  display: inline-flex;
  width: min(520px, 100%);
  padding: 6px 0 30px;
  text-decoration: none;
}
.brand-logo img { width: 100%; height: auto; display: block; }

.eyebrow {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .25em;
  color: rgba(255,255,255,.52);
}
.eyebrow.dark { color: #7c828c; margin-bottom: 8px; }

.brand-copy h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.24;
  letter-spacing: .015em;
  font-weight: 800;
}
.brand-description {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,.68);
}

.service-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}
.service-point {
  min-height: 98px;
  padding: 16px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.point-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.point-icon svg { width: 19px; fill: #fff; opacity: .86; }
.service-point strong, .service-point small { display: block; }
.service-point strong { font-size: 12px; margin-bottom: 5px; }
.service-point small { font-size: 10px; color: rgba(255,255,255,.5); line-height: 1.45; }

.login-card {
  position: relative;
  color: var(--text);
  background: rgba(255,255,255,.985);
  border-radius: 28px;
  padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan) 0 33.333%, var(--magenta) 33.333% 66.666%, var(--yellow) 66.666% 100%);
}

.login-card-heading { margin-bottom: 30px; }
.mini-mark { display: flex; gap: 5px; margin-bottom: 22px; }
.mini-mark i { width: 9px; height: 9px; border-radius: 50%; }
.mini-mark i:nth-child(1) { background: var(--cyan); }
.mini-mark i:nth-child(2) { background: var(--magenta); }
.mini-mark i:nth-child(3) { background: var(--yellow); }
.login-card-heading h2 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 32px);
  letter-spacing: .02em;
}
.login-card-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.field-group { margin-bottom: 20px; }
.field-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}
.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-icon svg { width: 100%; fill: #9da3ad; }
.input-wrap input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap input::placeholder { color: #a6abb4; }
.input-wrap input:focus {
  border-color: #9198a3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5,191,233,.12);
}
.input-wrap input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(198,40,40,.08); }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
  background: transparent;
  cursor: pointer;
}
.password-toggle:hover { background: #eef1f4; }
.password-toggle svg { width: 20px; fill: #7d838d; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: inline; }

.field-error {
  min-height: 18px;
  margin: 6px 2px 0;
  font-size: 11px;
  color: var(--danger);
}
.form-message {
  display: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.form-message.is-error { display: block; color: #8c1d18; background: #fdecea; border: 1px solid #f5c2bf; }
.form-message.is-success { display: block; color: #126440; background: #eaf7f0; border: 1px solid #b8e0cb; }

.login-button {
  width: 100%;
  height: 58px;
  margin-top: 2px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  background: #111318;
  box-shadow: 0 12px 26px rgba(17,19,24,.22);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.login-button:hover { transform: translateY(-2px); background: #24272d; box-shadow: 0 16px 32px rgba(17,19,24,.28); }
.login-button:active { transform: translateY(0); }
.login-button:disabled { cursor: wait; opacity: .65; transform: none; }
.login-button svg { width: 21px; fill: currentColor; }

.support-box {
  margin-top: 27px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f4f6f8;
  color: #555b65;
  font-size: 11px;
  line-height: 1.65;
}
.support-box p { margin: 0; }
.support-box p + p { margin-top: 4px; }
.support-box a { display: inline-block; margin-top: 7px; color: #1a6575; font-weight: 700; }
.security-note {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #89909a;
  font-size: 10px;
}
.security-note svg { width: 14px; fill: currentColor; }

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 4px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.36);
  font-size: 10px;
  letter-spacing: .04em;
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: rgba(255,255,255,.7); }

/* Client page */
.client-page { background: #f2f4f6; color: var(--text); }
.client-header { background: #111318; color: #fff; }
.client-header-inner {
  width: min(1120px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.client-header img { width: min(300px, 55vw); display: block; }
.logout-button { border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 10px 16px; color: #fff; background: transparent; cursor: pointer; }
.client-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.client-welcome { margin-bottom: 34px; }
.client-welcome .eyebrow { color: #828893; }
.client-welcome h1 { margin: 0; font-size: clamp(25px, 3vw, 38px); }
.client-welcome p { color: #717782; }
.notice-card { padding: 20px 22px; border-left: 4px solid var(--cyan); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.file-section { margin-top: 36px; }
.file-section h2 { font-size: 20px; }
.file-list { display: grid; gap: 12px; }
.file-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 20px; background: #fff; border-radius: 14px; box-shadow: 0 8px 25px rgba(0,0,0,.055); }
.file-card h3 { margin: 0 0 7px; font-size: 15px; }
.file-meta { color: #858b94; font-size: 11px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-width: 142px; height: 42px; padding: 0 16px; border-radius: 10px; text-decoration: none; color: #fff; font-size: 12px; font-weight: 700; background: #15181d; }
.loading-state, .empty-state { padding: 35px; text-align: center; color: #808690; background: #fff; border-radius: 14px; }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; gap: 30px; padding-top: 38px; }
  .brand-panel { text-align: center; padding-bottom: 0; }
  .brand-logo { width: min(470px, 86%); }
  .brand-description { margin-left: auto; margin-right: auto; }
  .service-points { max-width: 650px; margin-left: auto; margin-right: auto; }
  .login-panel { max-width: 620px; width: 100%; margin: 0 auto; }
}

@media (max-width: 620px) {
  .login-shell { width: min(100% - 28px, 560px); padding-top: 24px; }
  .brand-logo { padding-bottom: 22px; }
  .brand-copy h1 { font-size: 34px; }
  .brand-description { margin-top: 20px; font-size: 13px; }
  .service-points { grid-template-columns: 1fr; margin-top: 28px; }
  .service-point { min-height: 72px; }
  .login-card { border-radius: 22px; padding: 32px 22px; }
  .site-footer { width: calc(100% - 30px); flex-direction: column; align-items: center; text-align: center; }
  .file-card { grid-template-columns: 1fr; }
  .download-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
