:root {
  color-scheme: light;
  --navy-950: #0c1324;
  --navy-900: #131f38;
  --navy-800: #1b2b4d;
  --navy-700: #27385e;
  --green-500: #2ea95e;
  --green-400: #47c877;
  --text-900: #182033;
  --text-600: #70798d;
  --line-300: #d8dde8;
  --line-200: #e9edf4;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans SC", sans-serif;
  background: #f3f5fa;
  color: var(--text-900);
}

body {
  min-height: 100vh;
}

.modal-open {
  overflow: hidden;
}

.admin-body {
  background: linear-gradient(180deg, #eef3fb 0%, #e9eef8 100%);
}

.page-shell {
  display: grid;
  grid-template-columns: 1.14fr 0.96fr;
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.5), rgba(8, 14, 28, 0.78)),
    radial-gradient(circle at top center, rgba(64, 104, 173, 0.2), transparent 30%),
    linear-gradient(135deg, #1f2a42 0%, #121a2f 45%, #0b1120 100%);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05) 18%, transparent 18.5% 100%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.03) 28%, transparent 28.5% 100%);
  opacity: 0.6;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 30, 0.82), rgba(14, 22, 38, 0.6));
}

.brand-content {
  position: relative;
  z-index: 1;
  padding: 58px 52px 44px 52px;
  color: #fff;
}

.brand-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.brand-name {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  padding: 0;
  font-size: clamp(34px, 3vw, 50px);
  font-weight: 800;
  line-height: 1;
}

.brand-intro,
.brand-footer {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 24px;
  margin: 42px 0 48px;
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green-400);
  font-size: 28px;
  font-weight: 700;
}

.feature-item h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.feature-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.form-panel {
  background: #fff;
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
}

.form-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.language-select {
  min-width: 74px;
  height: 34px;
  padding: 0 30px 0 14px;
  border: 1px solid var(--line-200);
  border-radius: 4px;
  background: #fff;
  color: var(--text-900);
  font-size: 15px;
}

.form-card {
  width: min(100%, 560px);
  margin: 0 auto;
}

.form-card h1 {
  margin: 8px 0 28px;
  text-align: center;
  font-size: clamp(34px, 3vw, 50px);
  font-weight: 800;
  color: #152246;
  letter-spacing: 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.field > span {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-900);
}

.field em {
  font-style: normal;
  color: #d25555;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line-300);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.input-icon {
  width: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  color: #6f7786;
  font-size: 18px;
}

.input-shell input,
.input-shell select,
.textarea-shell textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-900);
  font-size: 17px;
  font-family: inherit;
}

.input-shell input,
.input-shell select {
  height: 54px;
  padding: 0 14px 0 0;
}

.input-shell input::placeholder,
.textarea-shell textarea::placeholder {
  color: #7e8593;
}

.select-shell {
  padding: 0 14px;
}

.select-shell select {
  padding: 0;
  appearance: auto;
}

.field-textarea {
  gap: 10px;
}

.textarea-shell {
  min-height: 124px;
  align-items: stretch;
  padding: 14px 16px;
}

.textarea-shell textarea {
  min-height: 92px;
  resize: none;
  line-height: 1.6;
}

.submit-btn {
  height: 62px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #1e2d56 0%, #152246 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.78;
}

.submit-btn:hover {
  filter: brightness(1.04);
}

.form-message {
  min-height: 24px;
  margin: -4px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.form-message[data-state="success"] {
  color: #198754;
}

.form-message[data-state="error"] {
  color: #d25555;
}

.copyright {
  margin: 18px 0 0;
  text-align: center;
  color: #8a91a0;
  font-size: 14px;
}

.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 27, 0.56);
}

.success-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 44px 36px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(18, 31, 58, 0.18);
  text-align: center;
}

.success-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1f9d57;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.success-modal__dialog h2 {
  margin: 0 0 12px;
  color: #152246;
  font-size: 34px;
  line-height: 1.15;
}

.success-modal__dialog p {
  margin: 0 0 24px;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.success-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1e2d56 0%, #152246 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.admin-shell {
  min-height: 100vh;
  padding: 28px;
}

.admin-login,
.admin-dashboard {
  width: min(100%, 1240px);
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(18, 31, 58, 0.12);
}

.admin-login {
  max-width: 560px;
  padding: 36px;
}

.admin-card-head {
  margin-bottom: 22px;
}

.admin-eyebrow {
  margin: 0 0 8px;
  color: #65708a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-login h1,
.admin-toolbar h1 {
  margin: 0;
  color: #152246;
  font-size: 34px;
  line-height: 1.15;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-dashboard {
  padding: 28px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-subtitle {
  margin: 8px 0 0;
  color: #6f7786;
  font-size: 15px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.secondary-btn {
  min-width: 92px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #152246;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn--light {
  background: #e8edf6;
  color: #223255;
}

.secondary-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line-200);
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-200);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  color: #41506f;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-note-cell {
  min-width: 220px;
  white-space: normal;
  word-break: break-word;
}

.admin-empty {
  padding: 48px 24px;
  text-align: center;
  color: #6f7786;
  font-size: 15px;
}

.table-delete-btn {
  min-width: 64px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #d25555;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.table-delete-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .brand-content,
  .form-panel {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    position: relative;
  }

  .form-topbar {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    margin: 0;
  }

  .language-select {
    min-width: 86px;
    height: 36px;
  }

  .brand-content {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .brand-tag {
    min-height: 54px;
    padding: 0 14px;
    border-width: 4px;
  }

  .brand-intro,
  .brand-footer {
    font-size: 15px;
  }

  .feature-item {
    grid-template-columns: 36px 1fr;
  }

  .feature-item h2 {
    font-size: 18px;
  }

  .feature-item p {
    font-size: 14px;
  }

  .form-panel {
    padding: 12px 14px 18px;
  }

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

  .admin-shell {
    padding: 16px;
  }

  .admin-login,
  .admin-dashboard {
    padding: 20px;
  }

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

  .form-card h1 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 28px;
  }

  .field > span,
  .input-shell input,
  .input-shell select,
  .textarea-shell textarea {
    font-size: 15px;
  }

  .submit-btn {
    height: 56px;
  }
}
