:root {
  --page-bg: #053953;
  --panel-bg: rgba(255, 255, 255, 0.56);
  --panel-border: rgba(255, 255, 255, 0.24);
  --panel-shadow: -15px 15px 15px rgba(6, 17, 47, 0.7);
  --text-strong: #ffffff;
  --text-normal: #1b3040;
  --text-muted: rgba(255, 255, 255, 0.86);
  --field-border: rgba(8, 32, 58, 0.18);
  --field-focus: #1786cf;
  --button-start: #1694f0;
  --button-end: #0b67c2;
  --error: #c83a3a;
  --success: #1a9c61;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(5, 57, 83, 0.72), rgba(4, 45, 74, 0.82)),
    url("./assets/background.png") center center / cover no-repeat;
}

.page-layout {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 56px;
}

.hero-copy {
  flex: 1;
  padding-right: 48px;
  color: var(--text-strong);
}

.hero-copy__inner {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 800;
}

.hero-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.login-panel {
  width: 100%;
  max-width: 368px;
  padding: 30px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(9px);
}

.brand {
  margin-bottom: 18px;
}

.brand__link {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__name {
  padding-left: 10px;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tabs__item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: default;
}

.tabs__item--active {
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

.login-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
}

.field__control {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__control:focus-within {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 3px rgba(23, 134, 207, 0.18);
}

.field__icon {
  flex: 0 0 auto;
  margin-right: 10px;
  color: rgba(0, 0, 0, 0.35);
  font-size: 14px;
}

.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-normal);
  font-size: 14px;
}

.field input::placeholder {
  color: rgba(0, 0, 0, 0.34);
}

.field__error {
  min-height: 20px;
  color: var(--error);
  font-size: 13px;
}

.submit-button {
  height: 40px;
  margin-top: 4px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--button-start), var(--button-end));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.submit-button:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 22px rgba(11, 103, 194, 0.28);
}

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

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.78;
}

.notice {
  min-height: 24px;
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.notice--error {
  color: #ffd7d7;
}

.notice--success {
  color: #dbffe8;
}

.panel-footer {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
}

.panel-footer a {
  color: inherit;
  text-decoration: none;
}

.panel-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .page-layout {
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: 28px 18px;
  }

  .hero-copy {
    padding-right: 0;
    text-align: center;
  }

  .hero-copy__inner {
    max-width: 100%;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .login-panel {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .brand__name {
    font-size: 30px;
  }

  .login-panel {
    padding: 22px 18px;
  }
}
