/* ログイン画面 — 搭乗券（Boarding Pass）デザイン */

#loginScreen {
  font-family: "Noto Sans JP", sans-serif;
  background: #eef0f4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
}

#loginScreen .login-screen-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#loginScreen .wrap {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 100%;
}

#loginScreen .plane-fly {
  position: fixed;
  left: 0;
  bottom: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  animation: flyby 9s ease-in-out infinite;
}

@keyframes flyby {
  0% {
    transform: translate3d(-3rem, 1rem, 0) rotate(-35deg);
    opacity: 0;
  }
  8% {
    opacity: 0.26;
  }
  85% {
    transform: translate3d(calc(100vw + 3rem), calc(-100vh - 3rem), 0) rotate(-35deg);
    opacity: 0.2;
  }
  92% {
    opacity: 0;
  }
  100% {
    transform: translate3d(calc(100vw + 3rem), calc(-100vh - 3rem), 0) rotate(-35deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginScreen .plane-fly {
    animation: none;
    display: none;
  }
}

#loginScreen .pass {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#loginScreen .pass-top {
  padding: 28px 36px 22px;
}

#loginScreen .header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

#loginScreen .header-meta {
  display: flex;
  gap: 28px;
  text-align: right;
}

#loginScreen .bp-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: #aaa;
  font-weight: 400;
}

#loginScreen .bp-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

#loginScreen .bp-value-lg {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  color: #1a1f36;
  margin-top: 3px;
}

#loginScreen .route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

#loginScreen .route-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 4.5rem;
}

#loginScreen .route-place {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.02em;
}

#loginScreen .iata {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 500;
  color: #1a1f36;
  letter-spacing: 1px;
}

#loginScreen .route-mid {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

#loginScreen .route-dash {
  flex: 1;
  height: 0.5px;
  background: #ddd;
}

#loginScreen .plane {
  font-size: 18px;
  line-height: 1;
}

#loginScreen .logo {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  text-align: left;
  flex-shrink: 0;
}

#loginScreen .logo .on {
  color: #1a1f36;
}

#loginScreen .logo .boarding {
  color: #e8407a;
}

#loginScreen .details-row {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
}

#loginScreen .subtitle-line {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.5px;
  line-height: 1.5;
  margin: 0;
}

#loginScreen .tear {
  display: flex;
  align-items: center;
  margin: 0 -1px;
}

#loginScreen .tear-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef0f4;
  flex-shrink: 0;
}

#loginScreen .tear-line {
  flex: 1;
  border: none;
  border-top: 1.5px dashed #ddd;
}

#loginScreen .pass-bottom {
  padding: 22px 36px 32px;
}

#loginScreen .field {
  margin-bottom: 16px;
}

#loginScreen .field label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

#loginScreen .field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1f36;
  background: #f7f8fa;
  font-family: "Noto Sans JP", sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

#loginScreen .field input:focus {
  border-color: #e8407a;
  background: #fff;
}

#loginScreen .field input::placeholder {
  color: #bbb;
}

#loginScreen .btn {
  width: 100%;
  padding: 13px;
  background: #1a1f36;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-family: "Noto Sans JP", sans-serif;
  transition: opacity 0.2s;
}

#loginScreen .btn:hover {
  opacity: 0.85;
}

#loginScreen .btn-dev {
  width: 100%;
  padding: 11px;
  margin-top: 10px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  transition: opacity 0.2s;
}

#loginScreen .btn-dev:hover {
  opacity: 0.9;
}

#loginScreen .footer-note {
  text-align: center;
  font-size: 11px;
  color: #bbb;
  margin-top: 16px;
  line-height: 1.5;
}

#loginScreen .footer-note a {
  color: #888;
  text-decoration: none;
}

#loginScreen .footer-note a:hover {
  text-decoration: underline;
}

#loginScreen .login-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
}

#loginScreen .login-hint code {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

#loginScreen .login-error {
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: left;
  border: 1px solid #fecaca;
}

#loginScreen .login-error-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

#loginScreen .login-error-row #loginErrorText {
  flex: 1;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

#loginScreen .login-error-close {
  flex-shrink: 0;
  margin: -2px 0 0;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid #f87171;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
}

#loginScreen .login-error-close:hover {
  background: #fff1f2;
}

#loginScreen .login-success {
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: left;
  border: 1px solid #a7f3d0;
}
