:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020305;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #f5f7fb;
  background:
    linear-gradient(110deg, rgba(70, 229, 184, 0.045), transparent 32%),
    linear-gradient(290deg, rgba(139, 124, 246, 0.06), transparent 36%),
    repeating-radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 11px),
    #020305;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.login-view {
  width: min(430px, 100%);
  margin: max(9vh, 50px) auto 0;
  overflow: hidden;
  border: 2px solid rgba(151, 160, 180, 0.5);
  border-radius: 8px;
  background:
    repeating-radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
    #050609;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.08);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 22px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.11), rgba(8, 9, 13, 0.94), rgba(70, 229, 184, 0.06));
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(70, 229, 184, 0.52);
  border-radius: 7px;
  color: #07100d;
  background: #46e5b8;
  font-size: 13px;
  font-weight: 900;
}

.login-brand p,
.login-brand strong,
.login-copy p,
.login-copy h1,
.lead-heading p,
.lead-heading h1,
.lead-heading span,
.section-heading h2,
.section-heading p,
.form-message {
  margin: 0;
}

.login-brand p,
.lead-heading p,
.login-copy p {
  color: #46e5b8;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-brand strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.login-form {
  display: grid;
  gap: 15px;
  padding: 30px;
}

.login-copy {
  margin-bottom: 4px;
  text-align: center;
}

.login-copy h1 {
  margin-top: 7px;
  font-size: 30px;
}

.login-form label,
.field-grid label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.login-form label > span,
.field-grid label > span {
  color: #aab2c2;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  outline: 0;
  color: #f5f7fb;
  background: #090a0f;
  font-size: 14px;
  font-weight: 670;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

select {
  appearance: auto;
}

textarea {
  min-height: 76px;
  padding-block: 10px;
  resize: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(70, 229, 184, 0.74);
  box-shadow: 0 0 0 2px rgba(70, 229, 184, 0.1), inset 0 1px rgba(255, 255, 255, 0.08);
}

.login-form button,
.form-footer button {
  min-height: 46px;
  border: 2px solid rgba(70, 229, 184, 0.72);
  border-radius: 7px;
  color: #06100d;
  background: #46e5b8;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(70, 229, 184, 0.16);
}

.login-form button:hover,
.login-form button:focus-visible,
.form-footer button:hover,
.form-footer button:focus-visible {
  border-color: #ffffff;
  background: #70edcb;
  outline: 0;
}

button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.lead-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(151, 160, 180, 0.52);
  border-radius: 8px;
  background:
    repeating-radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
    #050609;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.08);
}

.lead-header {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px;
  border-bottom: 3px solid rgba(139, 124, 246, 0.58);
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.11), rgba(8, 9, 13, 0.94) 45%, rgba(70, 229, 184, 0.06));
}

.lead-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.lead-mark {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid rgba(70, 229, 184, 0.52);
  border-radius: 50%;
  color: #46e5b8;
  background: #081712;
  font-size: 15px;
  font-weight: 900;
}

.lead-heading h1 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.05;
}

.lead-heading > div > span {
  display: block;
  margin-top: 6px;
  color: #929bac;
  font-size: 12px;
}

.logout-button {
  min-height: 38px;
  padding: 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #dfe4ed;
  background: #11131a;
  font-size: 12px;
  font-weight: 800;
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: rgba(255, 105, 135, 0.68);
  color: #ffc2cf;
  outline: 0;
}

.form-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 26px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-top: 2px;
}

.section-heading > span {
  color: #8b7cf6;
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.1;
}

.section-heading p {
  margin-top: 6px;
  color: #858e9f;
  font-size: 11px;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.span-full {
  grid-column: 1 / -1;
}

.form-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 82px;
  align-items: center;
  gap: 18px;
  padding: 15px 26px;
  background: #08090d;
}

.form-footer button {
  min-width: 170px;
}

.form-message {
  min-height: 18px;
  color: #9da5b5;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
}

.form-message.success {
  color: #78ebca;
}

.form-message.error {
  color: #ffd276;
}

@media (max-width: 920px) {
  .form-section {
    grid-template-columns: 1fr;
  }

  .four-columns,
  .three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 12px;
  }

  .login-view {
    margin-top: 24px;
  }

  .lead-header,
  .form-section,
  .form-footer {
    padding: 18px;
  }

  .four-columns,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-full {
    grid-column: auto;
  }

  .form-footer {
    grid-template-columns: 1fr;
  }

  .form-footer button {
    width: 100%;
  }
}
