﻿:root {
  --primary: #2ac889;
  --hover: #5ee0a3;
  --kit-blue: #2ac889;
  --kit-blue-2: #5ee0a3;
  --kit-orange: #ff7a45;
  --login-wallpaper: url("/assets/login-bg.jpg");
  --court-font-ui: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  overflow: hidden;
  font-family: var(--court-font-ui);
  background: #1a2744;
  color: #1f2a3a;
  font-size: 14px;
}

.login {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #1a2744;
  background-image: var(--login-wallpaper);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.login-bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.42) 70%, rgba(2, 6, 23, 0.58)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.08) 40%, rgba(2, 6, 23, 0.45));
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(360px, 88vw);
  padding: 38px 26px 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 14px 36px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px) saturate(1.05);
  -webkit-backdrop-filter: blur(2px) saturate(1.05);
}

.login-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
  min-width: 0;
}

.login-logo {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0;
  background: none;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.35));
}

.login-product {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.45);
}

.login-product span {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.login h1 {
  font-size: 13px;
  margin: 4px 0 18px;
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 700;
}

.login-field {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 0 0 22px;
  padding-bottom: 2px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field:focus-within {
  border-bottom-color: #fff;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.55);
}

.login-field input {
  flex: 1;
  width: 100%;
  height: 36px;
  padding: 0 30px 6px 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  caret-color: #fff;
  font-family: inherit;
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus,
.login-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 99999s ease-in-out 0s;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  background-color: transparent !important;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.login-field input:focus {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.login-field-icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-55%);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.login-field:focus-within .login-field-icon {
  color: #fff;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.login-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 0;
}

.login-remember {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  color: rgba(226, 232, 240, 0.9);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: #93c5fd;
  cursor: pointer;
}

.login-notice-link {
  border: 0;
  background: transparent;
  color: rgba(191, 219, 254, 0.95);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  height: auto;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-notice-link:hover {
  color: #fff;
}

.login-submit {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #2ac889 0%, #5ee0a3 100%);
  border: none;
  box-shadow:
    8px 10px 22px rgba(42, 200, 137, 0.45),
    -4px -4px 12px rgba(255, 255, 255, 0.18),
    inset 1px 1px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.login-submit:hover {
  filter: brightness(1.06);
  box-shadow:
    10px 12px 26px rgba(42, 200, 137, 0.5),
    -4px -4px 12px rgba(255, 255, 255, 0.2);
}

.login-submit:active {
  transform: translateY(1px);
  box-shadow:
    inset 3px 3px 8px rgba(2, 6, 23, 0.28),
    inset -2px -2px 6px rgba(255, 255, 255, 0.12);
}

.login-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.err {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(252, 165, 165, 0.45);
  background: rgba(254, 242, 242, 0.12);
  color: #fecaca;
  font-size: 13px;
  backdrop-filter: blur(2px);
}

.err.show {
  display: block;
}

.login-notice-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.login-notice-mask.open {
  display: flex;
}

.login-notice-dialog {
  width: min(440px, 92vw);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    12px 16px 36px rgba(2, 6, 23, 0.4),
    -6px -6px 18px rgba(255, 255, 255, 0.08),
    inset 1px 1px 3px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: #f1f5f9;
  overflow: hidden;
}

.login-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.login-notice-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
}

.login-notice-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
}

.login-notice-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.login-notice-body {
  padding: 14px 18px 8px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.92);
}

.login-notice-body p {
  margin: 0 0 12px;
}

.login-notice-body ol {
  margin: 0 0 12px 1.2em;
  padding: 0;
}

.login-notice-body li {
  margin: 0 0 8px;
}

.login-notice-foot {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-notice-ok {
  height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: inherit;
}

.login-notice-ok:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 20px 28px;
    border-radius: 20px;
  }

  .login-product {
    font-size: 15px;
  }
}
