.tga-hidden {
  display: none !important;
}

.tga-settingsbox .boxcontent {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tga-settingsbox h4 {
  margin: 0 0 0.5rem;
}

.tga-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tga-recovery-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.tga-recovery-input {
  width: 10rem;
}

.tga-qr-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.tga-totp-step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tga-qr-code {
  min-height: 208px;
}

.tga-secret-display {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tga-secret-label {
  font-size: 0.82em;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-transform: uppercase;
}

.tga-secret-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.03);
  font-family: monospace;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.tga-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.8rem;
}

.tga-code-input {
  width: 8rem;
}

.tga-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tga-help-text {
  font-size: 0.92em;
  opacity: 0.9;
}

.tga-recovery-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.025);
}

.tga-recovery-code {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #fff;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.tga-ack-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tga-passkey-section {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 1rem;
}

.tga-passkey-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tga-passkey-controls input[type="text"] {
  min-width: 16rem;
}

.tga-passkey-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tga-passkey-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.tga-passkey-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tga-passkey-label {
  font-weight: 600;
}

.tga-passkey-meta {
  font-size: 0.85em;
  opacity: 0.75;
}

.tga-passkey-empty {
  opacity: 0.8;
}

.tga-inline-status {
  min-height: 1.2em;
  font-size: 0.92em;
}

.tga-password-confirm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(177, 31, 31, 0.22);
  border-radius: 6px;
  background: rgba(177, 31, 31, 0.04);
}

.tga-password-confirm h5 {
  margin: 0;
}

.tga-status-error {
  color: #b11f1f;
}

.tga-status-ok {
  color: #216428;
}

.tga-login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

.tga-login-code-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 12rem;
  margin: 0 auto;
}

.tga-login-code-label {
  font-weight: 600;
  text-align: center;
}

.tga-login-code-label,
.tga-login-code-field {
  width: 100%;
}

.tga-login-code-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.tga-login-code-input {
  width: 100%;
  max-width: 12rem;
  margin: 0 auto;
  font-size: 1.04rem;
  letter-spacing: 0.08em;
}

.tga-login-code-help {
  font-size: 0.85em;
  line-height: 1.35;
  opacity: 0.82;
  text-align: center;
}

.tga-login-row .input .button {
  margin-top: 0.2rem;
}

#tga_login_code_row .input,
#tga_login_passkey_row .input {
  text-align: center;
  width: 100%;
}

#tga_login_passkey_row.tga-login-passkey-row {
  text-align: center;
}

#tga_login_code_row .tga-login-code-cell {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  width: 100%;
}

.task-login #login-form #tga_login_code_row,
.task-login #login-form #tga_login_code_row .tga-login-code-cell {
  display: block;
  width: 100%;
}

.tga-remember-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tga-login-remember {
  margin-top: 0.1rem;
}

.tga-login-remember label,
.tga-login-remember.tga-remember-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tga-totp-guidance {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tga-totp-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.tga-totp-options-title {
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-transform: uppercase;
}

.tga-totp-options-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.15rem;
}

.tga-totp-options-list li {
  margin: 0;
}

@media (max-width: 640px) {
  .tga-login-code-group {
    max-width: 100%;
  }

  .tga-login-code-input {
    max-width: 100%;
    letter-spacing: 0.06em;
  }

  .tga-login-code-help {
    font-size: 0.84em;
  }
}
