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

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(93, 242, 137, .12), transparent 30rem),
    linear-gradient(145deg, #021e27 0%, #083542 58%, #062c37 100%);
}

button, input { font: inherit; }

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 42px;
}

.brand { margin-bottom: 28px; }
.logo {
  color: #6ff28d;
  font-size: clamp(2.3rem, 7vw, 3.1rem);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
}
.brand p { margin: 10px 0 0; color: #cce8ed; }

.auth-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #175466;
  border-radius: 22px;
  background: rgba(7, 48, 60, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.intro { display: flex; gap: 18px; align-items: flex-start; }
.security-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #6ff28d;
  border-radius: 50%;
  color: #6ff28d;
  font-size: 1.8rem;
}

.eyebrow {
  margin: 0 0 5px;
  color: #6ff28d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 5vw, 2.35rem); }
h2 { font-size: 1.55rem; }
.intro p:last-child, .session-panel > p { color: #c8e2e7; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 30px 0 24px;
  padding: 5px;
  border: 1px solid #1b596a;
  border-radius: 14px;
  background: #062631;
}

.tab {
  padding: 12px 10px;
  border: 0;
  border-radius: 10px;
  color: #cce7ec;
  background: transparent;
  cursor: pointer;
}
.tab.active { color: #03212a; background: #6ff28d; font-weight: 800; }
.tab:focus-visible, .button:focus-visible, input:focus-visible, .show-password:focus-visible {
  outline: 3px solid #b9ffca;
  outline-offset: 2px;
}

.panel form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; color: #e7f7f9; font-weight: 650; }
input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #397181;
  border-radius: 10px;
  color: #f7ffff;
  background: #042630;
}
input::placeholder { color: #739aa4; }
input:focus { border-color: #6ff28d; }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 92px; }
.show-password {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #397181;
  border-radius: 8px;
  color: #d6edf1;
  background: #0a3b48;
  cursor: pointer;
}

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #03212a; background: #6ff28d; }
.button.primary:hover { background: #8af7a3; }
.button.secondary { color: #e6f6f8; border-color: #397181; background: #0a3b48; }
.button.full { width: 100%; margin-top: 3px; }
.button[disabled] { opacity: .6; cursor: wait; }

.hint, .password-rule { margin: 16px 0 0; color: #9fc5cc; font-size: .88rem; line-height: 1.45; }
.password-rule { margin-top: -7px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.privacy-note, .message, .session-panel {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #286678;
  border-radius: 12px;
  background: #0a3a47;
}
.privacy-note strong { color: #6ff28d; }
.privacy-note p { margin: 6px 0 0; color: #c8e2e7; line-height: 1.45; }
.message.error { border-color: #e27a7a; background: #4a2228; }
.message.success { border-color: #65dc86; background: #123e2a; }
.session-panel { margin-top: 28px; }

.trust {
  display: grid;
  max-width: 880px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px auto 0;
}
.trust div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 9px;
  padding: 15px;
  border: 1px solid rgba(55, 121, 137, .65);
  border-radius: 13px;
  background: rgba(5, 39, 49, .74);
}
.trust span { grid-row: 1 / 3; color: #6ff28d; font-size: 1.25rem; }
.trust small { color: #9fc5cc; line-height: 1.35; }

[hidden] { display: none !important; }

@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 560px); padding-top: 24px; }
  .auth-card { border-radius: 17px; }
  .intro { gap: 12px; }
  .security-mark { flex-basis: 44px; width: 44px; height: 44px; font-size: 1.35rem; }
  .tabs, .two-columns, .trust { grid-template-columns: 1fr; }
  .trust { max-width: 720px; }
}
