:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1f2329;
  --muted: #667085;
  --blue: #1677ff;
  --cyan: #13c2c2;
  --red: #ff4d4f;
  --green: #52c41a;
  --border: #e5eaf3;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(22, 119, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(19, 194, 194, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(22, 119, 255, 0.06) 0, rgba(22, 119, 255, 0) 320px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

[v-cloak] {
  display: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-panel {
  width: min(880px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 26px rgba(22, 119, 255, 0.28);
  font-weight: 700;
}

.brand-name {
  font-weight: 700;
  line-height: 20px;
}

.brand-sub,
.auth-kicker,
.hint {
  color: var(--muted);
  font-size: 13px;
}

.auth-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  min-height: 390px;
}

.auth-card-head {
  padding: 28px 28px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(22, 119, 255, 0.08), rgba(19, 194, 194, 0.04)),
    #fbfdff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-head h1 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 38px;
}

.auth-card-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.auth-card-body {
  padding: 30px 30px;
  display: flex;
  align-items: center;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.head-kicker {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e6f4ff;
  color: #0958d9;
  font-size: 12px;
  font-weight: 600;
}

.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.head-meta span {
  padding: 4px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.auth-input {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 6px 11px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.password-toggle {
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  background: #f2f6ff;
  color: var(--blue);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), #4096ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.2);
}

.btn-block {
  width: 100%;
}

.alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.alert-danger {
  border: 1px solid #ffccc7;
  background: #fff2f0;
  color: #cf1322;
}

.alert-success {
  border: 1px solid #b7eb8f;
  background: #f6ffed;
  color: #237804;
}

.hint.error {
  color: var(--red);
}

@media (max-width: 560px) {
  .auth-shell {
    align-items: start;
    padding-top: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .auth-panel {
    width: min(460px, 100%);
  }

  .auth-card {
    display: block;
    min-height: 0;
  }

  .auth-card-head {
    padding: 18px 20px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .auth-card-head h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .auth-card-body {
    padding: 18px 20px 20px;
    display: block;
  }
}
