* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #2f2f2f;
  background:
    radial-gradient(circle at top, rgba(255, 229, 153, 0.35), transparent 32%),
    linear-gradient(180deg, #fffbe9 0%, #fff7dc 100%);
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 540px;
  padding: 44px 38px 56px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 46px rgba(189, 155, 62, 0.18);
  text-align: center;
}

.login-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffbf12 0%, #ff8a00 100%);
  box-shadow: 0 10px 20px rgba(255, 153, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-icon__paper {
  width: 26px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 6px;
  position: relative;
}

.login-icon__paper::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, transparent 50%, #fff 50%);
  border-top-right-radius: 4px;
}

.login-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #1f2430;
}

.login-form {
  margin-top: 36px;
  text-align: left;
}

.login-label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: #454545;
}

.login-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #f5f5f7;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus {
  border-color: #ffb400;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.15);
}

.login-input::placeholder {
  color: #a7a7a7;
}

.login-button {
  width: 100%;
  height: 56px;
  margin-top: 28px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ffc000 0%, #ff7b00 100%);
  box-shadow: 0 8px 18px rgba(255, 145, 0, 0.24);
}

.login-button:hover {
  filter: brightness(1.03);
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(52, 37, 0, 0.24);
}

.login-modal {
  width: min(100%, 440px);
  border: 1px solid rgba(255, 232, 185, 0.95);
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.98);
  box-shadow: 0 18px 40px rgba(134, 97, 0, 0.18);
}

.login-modal-header,
.login-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
}

.login-modal-body {
  display: grid;
  gap: 16px;
  padding: 0 22px;
}

.login-modal-confirm-text {
  margin: 0;
  line-height: 1.8;
  color: #5d4a28;
}

.login-modal-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b48b32;
}

.login-modal-title {
  margin: 0;
  font-size: 24px;
}

.login-modal-confirm-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-modal-notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #9b6700;
  background: linear-gradient(180deg, rgba(255, 241, 201, 0.98) 0%, rgba(255, 249, 232, 0.98) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 116, 0.9);
}

.login-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #805000;
  background: rgba(255, 241, 205, 0.9);
}

.login-modal-primary {
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 173, 30, 0.95);
  border-radius: 18px;
  outline: none;
  color: #fff;
  background: linear-gradient(90deg, #ffc000 0%, #ff7b00 100%);
}

.login-modal-actions {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .login-card {
    padding: 36px 22px 40px;
    border-radius: 20px;
  }

  .login-title {
    font-size: 28px;
  }
}
