*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --panel: #111821;
  --panel2: #16202b;
  --text: #e8edf3;
  --muted: #9aa7b5;
  --line: #243140;
  --accent: #7db7ff;
  --accent2: #9ecbff;
  --success: #63e6be;
  --error-bg: rgba(218, 90, 48, 0.12);
  --error-line: rgba(218, 90, 48, 0.38);
  --error-text: #ffab91;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(125, 183, 255, 0.13),
      transparent 34rem
    ),
    linear-gradient(180deg, #0d131a 0%, var(--bg) 55%);
}

button,
input {
  font: inherit;
}

.loginShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.loginCard {
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0)
    ),
    var(--panel);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset;
}

.brandBlock {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brandMark {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success));
  box-shadow:
    0 0 24px rgba(125, 183, 255, 0.85),
    0 0 10px rgba(99, 230, 190, 0.3);
}

.brandText h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brandText p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.loginIntro {
  margin: 26px 0 20px;
}

.loginIntro h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.loginIntro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pinForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pinForm label {
  color: #cbd7e4;
  font-size: 13px;
  font-weight: 600;
}

.pinInput {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: var(--panel2);
  font-size: 20px;
  letter-spacing: 0.24em;
  text-align: center;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.pinInput:hover {
  border-color: #34465a;
}

.pinInput:focus {
  border-color: var(--accent);
  background: #182431;
  box-shadow: 0 0 0 3px rgba(125, 183, 255, 0.13);
}

.unlockButton {
  width: 100%;
  height: 46px;
  margin-top: 5px;
  border: 1px solid rgba(158, 203, 255, 0.4);
  border-radius: 11px;
  color: #08111b;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    box-shadow 120ms ease;
  box-shadow: 0 8px 22px rgba(125, 183, 255, 0.16);
}

.unlockButton:hover {
  filter: brightness(1.055);
  box-shadow: 0 10px 28px rgba(125, 183, 255, 0.23);
}

.unlockButton:active {
  transform: translateY(1px);
}

.unlockButton:focus-visible {
  outline: 3px solid rgba(125, 183, 255, 0.28);
  outline-offset: 2px;
}

.errorMessage {
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid var(--error-line);
  border-radius: 10px;
  color: var(--error-text);
  background: var(--error-bg);
  font-size: 13px;
  line-height: 1.4;
}

.securityNote {
  margin: 20px 0 0;
  color: #728092;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .loginShell {
    padding: 18px 14px;
  }

  .loginCard {
    padding: 24px 20px;
    border-radius: 15px;
  }

  .brandText h1 {
    font-size: 22px;
  }
}

/* TCI login polish */

body {
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(125, 183, 255, 0.13),
      transparent 34rem
    ),
    radial-gradient(
      circle at 86% 88%,
      rgba(99, 230, 190, 0.055),
      transparent 30rem
    ),
    linear-gradient(180deg, #0d131a 0%, var(--bg) 55%);
}

.unlockButton {
  color: #f4f8fc;
  border-color: rgba(125, 183, 255, 0.32);
  background: linear-gradient(180deg, #568bc7 0%, #3f73ad 100%);
  box-shadow:
    0 8px 20px rgba(63, 115, 173, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.unlockButton:hover {
  filter: brightness(1.08);
  box-shadow:
    0 10px 25px rgba(63, 115, 173, 0.23),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.versionFooter {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #596778;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.015em;
}
