.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.langSelect {
  margin-inline-start: auto;
}

.logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
}

.brandText {
  display: flex;
  flex-direction: column;
}

.domain {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.appName {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.backBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
  transition: color 0.2s;
}

.backBtn:hover {
  color: var(--primary);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.inputWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.inputIcon {
  position: absolute;
  inset-inline-start: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.inputWrap input {
  width: 100%;
  min-height: var(--field-height);
  padding-block: var(--field-padding-y);
  padding-inline: 38px 40px;
  font-size: var(--field-font-size);
  line-height: 1.4;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.inputWrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}

.togglePassword {
  position: absolute;
  inset-inline-end: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.2s;
}

.togglePassword:hover {
  color: var(--primary);
}

.formActions {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.linkBtn {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: opacity 0.2s;
}

.linkBtn:hover {
  opacity: 0.8;
}

.submitBtn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb) / 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}

.submitBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb) / 0.4);
}

.secondaryBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.08);
  border: 1px solid rgba(var(--primary-rgb) / 0.25);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.secondaryBtn:hover {
  background: rgba(var(--primary-rgb) / 0.14);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
}

.footerText {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.codeHint {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 10px 12px;
  background: rgba(var(--primary-rgb) / 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.codeHint strong {
  color: var(--text-primary);
}

.resendRow {
  display: flex;
  justify-content: center;
  margin-top: -4px;
}

.countdown {
  font-size: 13px;
  color: var(--text-muted);
}

.error {
  font-size: 13px;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.info {
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(var(--primary-rgb) / 0.08);
  border: 1px solid rgba(var(--primary-rgb) / 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.domainHint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: -12px 0 20px;
}

.fieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px 24px;
  }

  .title {
    font-size: 22px;
  }
}
