:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #333333;
  background: #f4f4f2;
  font-synthesis: none;

  --setta-yellow: #f8bd21;
  --setta-yellow-dark: #d99c00;
  --setta-yellow-soft: #fff4c7;
  --setta-graphite: #333333;
  --setta-graphite-2: #4a4a4a;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8f8f6;
  --border: #deded8;
  --green: #247247;
  --green-soft: #e6f4e9;
  --red: #a72b2b;
  --red-soft: #fbe8e8;
  --gray: #737373;
  --gray-soft: #e9e9e4;
  --shadow: 0 14px 34px rgba(51, 51, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(248, 189, 33, 0.18),
      transparent 31rem
    ),
    #f4f4f2;
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  min-height: 50px;
}

button {
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 14px clamp(18px, 3vw, 42px);
  background: var(--setta-yellow);
  border-bottom: 6px solid var(--setta-graphite);
  box-shadow: 0 5px 22px rgba(51, 51, 51, 0.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: clamp(150px, 20vw, 260px);
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.brand-copy {
  padding-left: 18px;
  border-left: 1px solid rgba(51, 51, 51, 0.28);
}

.brand-copy h1 {
  margin: 0;
  color: var(--setta-graphite);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.1;
}

.brand-copy p {
  margin: 5px 0 0;
  color: var(--setta-graphite-2);
  font-size: 13px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.header-actions button {
  padding: 0 15px;
  border: 1px solid var(--setta-graphite);
  border-radius: 10px;
  background: var(--white);
  color: var(--setta-graphite);
  font-weight: 750;
}

.header-actions button:hover {
  background: #f2f2ef;
}

.header-actions .primary {
  border-color: var(--setta-graphite);
  background: var(--setta-graphite);
  color: var(--setta-yellow);
}

.header-actions .primary:hover {
  background: #454545;
}

.header-actions .close-application {
  border-color: #7d2020;
  background: #7d2020;
  color: #ffffff;
}

.header-actions .close-application:hover {
  background: #651919;
}

.header-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.shutdown-screen {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(248, 189, 33, 0.22),
      transparent 34rem
    ),
    #f4f4f2;
}

.shutdown-card {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid var(--border);
  border-top: 8px solid var(--setta-yellow);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.shutdown-card img {
  width: min(250px, 75%);
  height: 70px;
  object-fit: contain;
}

.shutdown-card h1 {
  margin: 24px 0 10px;
  color: var(--setta-graphite);
  font-size: 26px;
}

.shutdown-card p {
  margin: 8px 0;
  color: var(--gray);
  line-height: 1.5;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  gap: 20px;
  max-width: 1600px;
  margin: auto;
  padding: 22px;
}

.form-column,
.results-column {
  min-width: 0;
}

.card {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
  background: var(--setta-graphite);
  color: var(--white);
  border-left: 9px solid var(--setta-yellow);
}

.card-header h2 {
  margin: 0;
  font-size: 18px;
}

.card-header small {
  color: #d7d7d7;
}

.card-body {
  padding: 18px;
}

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

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

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

.field label {
  color: var(--setta-graphite);
  font-size: 14px;
  font-weight: 780;
}

.field small {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.4;
}

.field input,
.field select {
  width: 100%;
  padding: 0 13px;
  border: 1px solid #bdbdb6;
  border-radius: 11px;
  outline: none;
  background: #fffdf5;
  color: var(--setta-graphite);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--setta-yellow-dark);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(248, 189, 33, 0.20);
}

.field.optional input,
.field.optional select {
  background: var(--setta-yellow-soft);
}

.field.auto output {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid #e5ca74;
  border-radius: 11px;
  background: var(--setta-yellow-soft);
  color: var(--setta-graphite);
  font-weight: 850;
}

.field-disabled {
  opacity: 0.48;
}

.field-disabled input,
.field-disabled select {
  background: var(--gray-soft);
}

.section-disabled {
  opacity: 0.5;
}

.section-disabled input,
.section-disabled select {
  pointer-events: none;
}

.input-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid #efd477;
  border-radius: 11px;
  background: var(--setta-yellow-soft);
  color: #5b4800;
  font-size: 13px;
  line-height: 1.45;
}

.input-note::before {
  content: "i";
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--setta-yellow);
  color: var(--setta-graphite);
  font-weight: 900;
}

.result-card {
  position: sticky;
  top: 112px;
}

.validation-message {
  display: none;
  margin-top: 7px;
  color: var(--red);
  font-weight: 750;
  line-height: 1.35;
}

.validation-message-visible {
  display: block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--gray-soft);
  color: var(--setta-graphite);
  font-size: 12px;
  font-weight: 900;
}

.status-ok {
  background: var(--setta-yellow);
  color: var(--setta-graphite);
}

.status-warning {
  background: var(--setta-yellow-soft);
  color: #715500;
}

.status-error {
  background: var(--red-soft);
  color: var(--red);
}

.status-neutral {
  background: var(--gray-soft);
  color: var(--gray);
}

.hero-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(
      120deg,
      var(--setta-yellow) 0,
      var(--setta-yellow) 13px,
      #fffdf5 13px
    );
  border-bottom: 1px solid var(--border);
}

.hero-result .label {
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-result .value {
  margin-top: 5px;
  color: var(--setta-graphite);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 950;
  line-height: 1;
}

.hero-result .quantity {
  padding-bottom: 3px;
  color: var(--setta-graphite);
  font-size: 16px;
  font-weight: 850;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.metric {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
}

.metric .label {
  color: var(--gray);
  font-size: 12px;
}

.metric .value {
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--setta-graphite);
  font-size: 17px;
  font-weight: 880;
}

.metric.highlight {
  border-color: #e3b624;
  background: var(--setta-yellow-soft);
}

.metric.highlight .value {
  color: var(--setta-graphite);
}

.metric.dark {
  background: var(--setta-graphite);
}

.metric.dark .label {
  color: #cfcfcf;
}

.metric.dark .value {
  color: var(--setta-yellow);
}

.note {
  display: none;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid #e7c653;
  border-radius: 11px;
  background: var(--setta-yellow-soft);
  color: #665000;
  font-size: 13px;
  line-height: 1.45;
}

.note-visible {
  display: block;
}

details {
  border-top: 1px solid var(--border);
}

summary {
  cursor: pointer;
  padding: 15px 18px;
  background: #f7f7f3;
  color: var(--setta-graphite);
  font-weight: 850;
}

.memory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.memory-table th,
.memory-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ecece7;
  text-align: right;
  vertical-align: middle;
}

.memory-table th {
  width: 55%;
  color: var(--setta-graphite);
  text-align: left;
  font-weight: 720;
}

.memory-table td:nth-child(2) {
  color: var(--setta-graphite);
  font-weight: 900;
}

.memory-table td:last-child {
  color: var(--gray);
  white-space: nowrap;
}

.memory-table .result-row {
  background: var(--setta-yellow-soft);
}

.memory-table .informative-row {
  background: #f5f5f2;
  color: var(--gray);
}

.checks-card .card-body {
  display: grid;
  gap: 8px;
}

.check-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
}

.check-code {
  color: var(--gray);
  font-size: 12px;
  font-weight: 900;
}

.check-label {
  font-size: 13px;
  font-weight: 720;
}

.check-status {
  min-width: 70px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.check-ok .check-status {
  background: var(--setta-yellow);
  color: var(--setta-graphite);
}

.check-error .check-status {
  background: var(--red-soft);
  color: var(--red);
}

.empty-state {
  padding: 14px;
  border-radius: 11px;
  background: #f4f4f0;
  color: var(--gray);
  font-size: 13px;
  text-align: center;
}

.save-state {
  padding: 2px 4px 20px;
  color: var(--gray);
  font-size: 12px;
  text-align: right;
}

.footer {
  max-width: 1600px;
  margin: auto;
  padding: 0 22px 28px;
  color: var(--gray);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1120px) {
  .app-header {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: 138px;
    height: 48px;
  }

  .brand-copy {
    padding-left: 12px;
  }

  .brand-copy p {
    display: none;
  }

  .header-actions button {
    flex: 1;
    min-width: 120px;
  }

  .app-shell {
    gap: 12px;
    padding: 10px;
  }

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

  .card {
    border-radius: 14px;
  }

  .check-item {
    grid-template-columns: 48px 1fr;
  }

  .check-status {
    grid-column: 2;
    justify-self: start;
  }
}


.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-actions button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 11px;
  font-weight: 850;
}

.primary-action {
  border: 1px solid var(--setta-yellow);
  background: var(--setta-yellow);
  color: var(--setta-graphite);
}

.secondary-action {
  border: 1px solid var(--setta-graphite);
  background: var(--white);
  color: var(--setta-graphite);
}

.email-message {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.email-message:not(:empty) {
  min-height: 42px;
  padding: 12px 14px;
}

.email-info {
  background: var(--setta-yellow-soft);
  color: #665000;
}

.email-success {
  background: var(--green-soft);
  color: var(--green);
}

.email-error {
  background: var(--red-soft);
  color: var(--red);
}

.print-report {
  display: none;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  html,
  body {
    width: 100%;
    min-height: 0;
    background: white !important;
  }

  body > *:not(.print-report) {
    display: none !important;
  }

  .print-report {
    display: block !important;
    width: 100%;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-header {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 62px;
    padding: 10px 18px;
    background: #f8bd21 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-header img {
    width: 155px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
  }

  .print-header h1 {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
  }

  .print-header p {
    display: flex;
    gap: 28px;
    margin: 4px 0 0;
    font-size: 9px;
  }

  .print-layout {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 10px;
    margin-top: 9px;
  }

  .print-result-panel,
  .print-study-panel {
    min-height: 486px;
    border: 1px solid #d8d8d2;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
  }

  .print-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    background: #333333 !important;
    color: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-result-header h2 {
    margin: 0;
    font-size: 15px;
  }

  .print-result-header span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8bd21 !important;
    color: #333333;
    font-size: 8px;
    font-weight: 800;
  }

  .print-recommendation {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e2e2dc;
    background:
      linear-gradient(
        125deg,
        #f8bd21 0,
        #f8bd21 11px,
        #fffdf5 11px
      ) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-recommendation small {
    display: block;
    color: #707070;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .print-recommendation strong {
    display: block;
    max-width: 310px;
    margin-top: 4px;
    font-size: 22px;
    line-height: 1;
  }

  .print-recommendation b {
    font-size: 11px;
  }

  .print-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 11px 13px 13px;
  }

  .print-metric {
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid #dcdcd6;
    border-radius: 8px;
  }

  .print-metric span {
    display: block;
    color: #727272;
    font-size: 7.5px;
  }

  .print-metric strong {
    display: block;
    margin-top: 4px;
    font-size: 11px;
  }

  .print-metric.print-highlight {
    border-color: #e7b51a;
    background: #fff3bf !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-study-title,
  .print-products-title {
    padding: 11px 14px;
    background: #f8bd21 !important;
    color: #333333;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-topics {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 10px 14px 9px;
    list-style: none;
  }

  .print-topics li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 3px;
    border-bottom: 1px solid #ecece7;
    font-size: 7.8px;
  }

  .print-topics span {
    color: #666666;
  }

  .print-topics strong {
    text-align: right;
  }

  .print-products-title {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 11px;
  }

  .print-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    min-height: 175px;
    padding: 8px 10px;
  }

  .print-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 6px;
    border: 1px solid #ddddda;
    border-radius: 8px;
    background: #ffffff;
  }

  .print-product figcaption {
    font-size: 8px;
    font-weight: 900;
    text-align: center;
  }

  .print-product img {
    width: 100%;
    height: 132px;
    margin-top: 3px;
    object-fit: contain;
  }

  .print-empty {
    grid-column: 1 / -1;
    align-self: center;
    color: #777777;
    font-size: 9px;
    text-align: center;
  }

  .print-disclaimer {
    margin: 0 10px 8px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #f2f2ee !important;
    color: #666666;
    font-size: 6.7px;
    line-height: 1.35;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.pricing-reference {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e0aa12;
  border-radius: 0.8rem;
  background: #fff4c7;
}

.pricing-reference > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pricing-reference-label {
  color: #60605b;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-reference strong {
  color: #2f2f2c;
  font-size: 1rem;
  white-space: nowrap;
}

.pricing-reference small,
.exchange-metric small {
  color: #66665f;
  font-size: 0.68rem;
  line-height: 1.25;
}

.exchange-metric {
  background: #fff9e7;
  border-color: #e6b31a;
}

.exchange-metric .value {
  margin-bottom: 0.25rem;
}

@media (max-width: 700px) {
  .pricing-reference > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}



.architecture-note {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px solid #e3b624;
  border-radius: 12px;
  background: var(--setta-yellow-soft);
  color: var(--setta-graphite);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.price-kwh-metric {
  border-color: #d6d6cf;
  background: #fafaf7;
}

.price-kwh-metric small {
  display: block;
  margin-top: 5px;
  color: var(--gray);
  font-size: 10px;
  line-height: 1.3;
}

.preliminary-dimensioning-note {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--setta-yellow);
  border-radius: 10px;
  background: #f4f4f0;
  color: var(--setta-graphite);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.installation-commissioning-scope-note {
  margin: -6px 16px 16px;
  padding: 12px 14px;
  border: 1px solid #e5d18a;
  border-radius: 10px;
  background: #fff8dc;
  color: var(--setta-graphite);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}


.server-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.server-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a0a0a0;
}

.server-status.connected {
  color: var(--green);
}

.server-status.connected::before {
  background: var(--green);
}

.server-status.disconnected {
  color: var(--red);
}

.server-status.disconnected::before {
  background: var(--red);
}

.server-status.checking {
  color: #665000;
}

.server-status.checking::before {
  background: var(--setta-yellow);
}

.diagnostic-action {
  border: 1px dashed var(--setta-graphite);
  background: #f4f4f2;
  color: var(--setta-graphite);
}

.diagnostic-action:hover {
  background: var(--setta-yellow-soft);
}

/* Autenticação por e-mail e código */
[hidden] {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    linear-gradient(145deg, rgba(248, 189, 33, 0.96), rgba(248, 189, 33, 0.72)),
    #f8bd21;
}

.login-card {
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(51, 51, 51, 0.18);
  border-bottom: 8px solid var(--setta-graphite);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(51, 51, 51, 0.24);
}

.login-logo {
  width: min(250px, 70%);
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

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

.login-heading > span {
  display: inline-block;
  padding: 5px 9px;
  background: var(--setta-yellow);
  color: var(--setta-graphite);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.login-heading h1 {
  margin: 12px 0 6px;
  color: var(--setta-graphite);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
}

.login-heading p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}

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

.login-field {
  display: grid;
  gap: 7px;
}

.login-field label {
  color: var(--setta-graphite);
  font-size: 14px;
  font-weight: 850;
}

.login-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #bdbdb6;
  border-radius: 11px;
  outline: none;
  background: #fffdf5;
  color: var(--setta-graphite);
}

.login-field input:focus {
  border-color: var(--setta-yellow-dark);
  box-shadow: 0 0 0 4px rgba(248, 189, 33, 0.22);
}

#login-code {
  text-align: center;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.35em;
}

.login-primary,
.login-secondary {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 900;
}

.login-primary {
  border: 1px solid var(--setta-graphite);
  background: var(--setta-graphite);
  color: var(--setta-yellow);
}

.login-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(51, 51, 51, 0.18);
}

.login-secondary {
  border: 1px solid #c9c9c2;
  background: var(--white);
  color: var(--setta-graphite);
}

.login-primary:disabled,
.login-secondary:disabled {
  cursor: wait;
  opacity: 0.58;
}

.login-security-note,
.network-login-warning {
  margin: 0;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.45;
}

.network-login-warning {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #e6c55b;
  border-radius: 9px;
  background: var(--setta-yellow-soft);
  color: #675100;
}

.code-sent {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-left: 4px solid var(--setta-yellow);
  background: #f6f6f2;
  color: var(--gray);
  font-size: 13px;
}

.code-sent strong {
  overflow-wrap: anywhere;
  color: var(--setta-graphite);
  font-size: 15px;
}

.code-expiration {
  color: var(--gray);
  font-size: 13px;
  text-align: center;
}

.code-expiration strong {
  color: var(--setta-graphite);
}

.login-message {
  min-height: 0;
  margin-top: 16px;
  padding: 0;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.login-message:not(:empty) {
  padding: 11px 13px;
}

.login-message.info {
  background: #eef3f7;
  color: #34546c;
}

.login-message.success {
  background: var(--green-soft);
  color: var(--green);
}

.login-message.error {
  background: var(--red-soft);
  color: var(--red);
}

.authenticated-user {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 9px;
  max-width: 260px;
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid rgba(51, 51, 51, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
}

.authenticated-user span {
  color: var(--setta-graphite-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authenticated-user strong {
  overflow: hidden;
  color: var(--setta-graphite);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authenticated-user button {
  grid-column: 2;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d260f;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
}

.authenticated-sender {
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid #e3b624;
  border-radius: 11px;
  background: var(--setta-yellow-soft);
}

.authenticated-sender-label {
  color: var(--gray);
  font-size: 12px;
}

.authenticated-sender strong {
  overflow-wrap: anywhere;
  color: var(--setta-graphite);
  font-size: 15px;
}

@media (max-width: 1180px) {
  .authenticated-user {
    order: 3;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 24px 20px;
    border-radius: 15px;
  }

  .login-logo {
    height: 52px;
  }
}
