:root {
  --bg: #ffffff;
  --text: #1f2a44;
  --muted: #8fa0b7;
  --label: #2b3a56;
  --border: #e3e8f2;
  --fieldBg: #ffffff;
  --icon: #c5cedd;
  --primary: #253a7d;
  --primaryHover: #1f3168;
  --radius: 10px;
  --modalBg: #0f1d3f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 18px;
}

.card {
  width: 420px;
  max-width: 100%;
  padding: 6px 8px;
}

.cardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cardHeaderText {
  min-width: 0;
}

.brandLogo {
  width: 172px;
  max-width: 44%;
  height: 46px;
  object-fit: contain;
  object-position: right top;
  margin-top: 4px;
}

.title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--label);
}

.control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--fieldBg);
  border-radius: var(--radius);
  height: 46px;
}

.leftIcon {
  width: 44px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon);
  flex: 0 0 44px;
}

.leftIcon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0 44px 0 0;
  font-size: 14px;
  color: var(--text);
}

.input::placeholder {
  color: #b8c2d3;
}

.rightIconBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #c7cfdf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.rightIconBtn:hover {
  color: #aebad0;
}

.rightIconBtn:focus-visible {
  outline: 2px solid rgba(37, 58, 125, 0.25);
  outline-offset: 2px;
}

.rightIconBtn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.checkboxLabel {
  font-size: 12px;
  color: var(--muted);
}

.link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.primary {
  margin-top: 8px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.primary:hover {
  background: var(--primaryHover);
}

.primary:active {
  transform: translateY(1px);
}

.primary:focus-visible {
  outline: 3px solid rgba(37, 58, 125, 0.28);
  outline-offset: 2px;
}

.or {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #b1bccf;
}

.signup {
  margin-top: 6px;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.signup:hover {
  text-decoration: underline;
}

.hint {
  min-height: 18px;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  display: none;
  padding: 18px;
  background: rgba(6, 16, 38, 0.35);
  z-index: 1000;
}

.modalOverlay.isOpen {
  display: grid;
}

.modal {
  width: 320px;
  max-width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, #142651 0%, #0f1d3f 100%);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: #eaf0ff;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.modalTitle {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.95;
  margin-bottom: 14px;
}

.storeList {
  display: grid;
  gap: 10px;
}

.storeBtn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.storeBtn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.storeBtn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.storeIcon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex: 0 0 28px;
}

.storeIcon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.storeText {
  display: grid;
  line-height: 1.05;
}

.storeTop {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
}

.storeMain {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (max-width: 420px) {
  .brandLogo {
    width: 150px;
    height: 40px;
    margin-top: 6px;
  }

  .title {
    font-size: 34px;
  }
}

