:root {
  --bg-1: #07111d;
  --bg-2: #102239;
  --bg-3: #0f4a55;
  --panel: rgba(248, 250, 252, 0.95);
  --panel-border: rgba(255,255,255,0.3);
  --text: #10243e;
  --muted: #62788e;
  --line: rgba(16,36,62,0.12);
  --primary: #1b8fff;
  --primary-2: #145fdc;
  --success-bg: #ecf8ef;
  --success-text: #14643d;
  --error-bg: #fff1f1;
  --error-text: #a73b3b;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(27, 143, 255, 0.14), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(17, 182, 162, 0.18), transparent 30%),
    linear-gradient(140deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
}

.front-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 68px;
}

.hero {
  width: 100%;
  max-width: 590px;
}

.hero-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.965), rgba(246,249,252,0.93));
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  padding: 34px 26px 26px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.panel-title {
  margin-bottom: 20px;
}

.panel-title h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.18;
  color: #112540;
  letter-spacing: -.02em;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 14px;
}

.stack {
  display: grid;
  gap: 16px;
}

.field {
  display: block;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: #5d7288;
  font-size: 13px;
  font-weight: 700;
}

input[type="password"],
input[type="file"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  outline: none;
}

input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus {
  border-color: rgba(27,143,255,0.48);
  box-shadow: 0 0 0 4px rgba(27,143,255,0.08);
}

input[type="file"] {
  background: #fff;
}

textarea {
  min-height: 250px;
  resize: vertical;
  line-height: 1.72;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 162px;
  padding: 24px;
  border-radius: 22px;
  border: 2px dashed rgba(27, 143, 255, 0.28);
  background: linear-gradient(180deg, #f5fbff 0%, #eef6ff 100%);
  text-align: center;
  color: #2f5075;
}

.dropzone span {
  font-size: 18px;
  font-weight: 700;
}

.dropzone small {
  color: #7a8da0;
  line-height: 1.7;
}

.dropzone.is-hover {
  border-color: rgba(27, 143, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(27, 143, 255, 0.08);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(27, 143, 255, 0.24);
}

.btn-secondary {
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: #74879a;
  border: 1px solid rgba(15,34,57,0.12);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stats article {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
}

.stats span {
  display: block;
  color: #7a8a9b;
  font-size: 12px;
  font-weight: 700;
}

.stats strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
  color: #132844;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.action-row .btn-primary,
.action-row .btn-secondary {
  width: auto;
  min-width: 136px;
}

.inline-form {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  padding-top: 6px;
}

.notice {
  padding: 13px 14px;
  border-radius: 16px;
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 14px;
}

.notice-success { background: var(--success-bg); color: var(--success-text); }
.notice-error { background: var(--error-bg); color: var(--error-text); }

@media (max-width: 640px) {
  .front-shell {
    padding: 22px 14px 30px;
    align-items: flex-start;
  }

  .hero-card {
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .panel-title h2 {
    font-size: 22px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row .btn-primary,
  .action-row .btn-secondary {
    width: 100%;
  }
}
