﻿@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@600;700;900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --ink: #0c2f2c;
  --ink-soft: #1a4a45;
  --jade: #0d6b5c;
  --jade-bright: #12806e;
  --sand: #f4efe6;
  --paper: #faf7f2;
  --amber: #c4782e;
  --text: #1c2b29;
  --muted: #5e6f6c;
  --line: rgba(12, 47, 44, 0.1);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "DM Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
}

.login-body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(120% 70% at 10% -5%, rgba(13, 107, 92, 0.22), transparent 55%),
    radial-gradient(90% 55% at 100% 5%, rgba(196, 120, 46, 0.16), transparent 48%),
    linear-gradient(165deg, #f8f3ea 0%, #eef4f1 46%, #e5ece9 100%);
  background-attachment: fixed;
}

.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.login-form {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.login-shell {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  animation: loginIn 0.6s var(--ease) both;
}

@keyframes loginIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.login-brand {
  text-align: center;
  padding: 18px 0 28px;
}

.login-mark-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #123f3a, #0d6b5c 55%, #1a8a76);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(12, 47, 44, 0.18);
  animation: markPop 0.7s var(--ease) 0.08s both;
}

@keyframes markPop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

.login-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-mark-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  color: #f7f3ec;
  letter-spacing: 0.04em;
}

.login-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--ink);
  line-height: 1.15;
}

.login-brand-sub {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.login-panel {
  padding: 26px 20px 22px;
  border-radius: 24px;
  background: rgba(250, 247, 242, 0.78);
  border: 1px solid rgba(12, 47, 44, 0.08);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation: panelIn 0.65s var(--ease) 0.12s both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.login-desc {
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}

.login-field {
  display: block;
  margin-bottom: 14px;
}

.login-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.login-input,
.login-panel input[type="text"],
.login-panel input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.login-input:focus,
.login-panel input[type="text"]:focus,
.login-panel input[type="password"]:focus {
  border-color: rgba(13, 107, 92, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 107, 92, 0.12);
}

.login-input::placeholder {
  color: #93a19e;
}

.login-submit {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--jade) 0%, #0a5a4e 100%);
  color: #f7f3ec;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}

.login-submit:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.login-footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: #7a8a87;
  letter-spacing: 0.02em;
}

@media (min-width: 480px) {
  .login-shell { padding-top: 56px; }
  .login-brand-name { font-size: 34px; }
}
